2019-07-23 07:16:17 -06:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
2019-10-08 02:16:02 -06:00
|
|
|
export DESTDIR="$1"
|
|
|
|
|
2020-02-26 01:18:52 -07:00
|
|
|
# Remove 'libelf' and 'util-linux' dependencies.
|
2019-11-17 17:58:51 -07:00
|
|
|
sed -i 's/if have_libelf/if not have_libelf/' gio/meson.build
|
2020-02-26 01:18:52 -07:00
|
|
|
sed -i 's/libmount_dep.found()/false/' meson.build
|
2020-02-07 16:28:50 -07:00
|
|
|
|
2020-03-13 23:09:43 -06:00
|
|
|
# Don't build tests/fuzzing stuff.
|
|
|
|
find . -type f -name meson.build -exec \
|
|
|
|
sed -i "/subdir('tests')/d;/subdir('fuzzing')/d" {} +
|
2020-02-07 16:28:50 -07:00
|
|
|
|
2019-07-23 07:16:17 -06:00
|
|
|
meson \
|
|
|
|
--prefix=/usr \
|
2020-02-07 16:28:50 -07:00
|
|
|
-Dlibmount=disabled \
|
|
|
|
-Dinstalled_tests=false \
|
2019-07-23 07:16:17 -06:00
|
|
|
-Dman=false \
|
|
|
|
-Dfam=false \
|
2020-02-26 01:18:52 -07:00
|
|
|
-Dinternal_pcre=true \
|
2019-07-23 07:16:17 -06:00
|
|
|
. build
|
|
|
|
|
|
|
|
ninja -C build
|
2019-10-08 02:16:02 -06:00
|
|
|
ninja -C build install
|
2019-08-18 18:45:05 -06:00
|
|
|
|
2019-10-03 13:24:57 -06:00
|
|
|
# Purge gdbus.
|
|
|
|
rm -rf "$1/usr/bin/gdbus"
|