2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-12-25 16:50:07 -07:00
repo/extra/glib/build

27 lines
521 B
Plaintext
Raw Normal View History

2019-07-23 07:16:17 -06:00
#!/bin/sh -e
2019-10-08 02:16:02 -06:00
export DESTDIR="$1"
2019-08-18 03:32:44 -06:00
# Remove 'libelf' dependency.
2019-11-17 17:58:51 -07:00
sed -i 's/if have_libelf/if not have_libelf/' gio/meson.build
2019-08-18 03:32:44 -06:00
2020-02-07 16:28:50 -07:00
# 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" {} +
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 \
. 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"