2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-11-15 11:10:08 -07:00
repo/extra/glib/build

33 lines
674 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"
2021-07-03 15:27:51 -06:00
# Remove 'libelf' dependency.
sed 's/HAVE_LIBELF/HAVE_KISS/' gio/meson.build > _
mv -f _ gio/meson.build
# Remove 'util-linux' dependency.
sed 's/libmount_dep.found()/false/' meson.build > _
mv -f _ meson.build
2020-02-07 16:28:50 -07:00
2020-03-13 23:09:43 -06:00
# Don't build tests/fuzzing stuff.
2021-07-03 15:27:51 -06:00
find . -type f -name meson.build | while read -r f; do
sed "/subdir('tests')/d;/subdir('fuzzing')/d" "$f" > _
mv -f _ "$f"
done
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 \
2020-06-20 05:49:26 -06:00
-Ddefault_library=both \
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
2021-06-30 07:03:08 -06:00
rm -rf "$1/usr/bin/gdbus"