repo/extra/glib/build
2020-02-08 01:28:50 +02:00

27 lines
521 B
Bash
Executable File

#!/bin/sh -e
export DESTDIR="$1"
# Remove 'libelf' dependency.
sed -i 's/if have_libelf/if not have_libelf/' gio/meson.build
# Remove 'util-linux' dependency.
sed -i 's/libmount_dep.found()/false/' meson.build
# Don't build tests.
find . -type f -name meson.build -exec sed -i "/subdir('tests')/d" {} +
meson \
--prefix=/usr \
-Dlibmount=disabled \
-Dinstalled_tests=false \
-Dman=false \
-Dfam=false \
. build
ninja -C build
ninja -C build install
# Purge gdbus.
rm -rf "$1/usr/bin/gdbus"