mirror of
https://codeberg.org/kiss-community/repo
synced 2024-12-22 15:20:06 -07:00
33 lines
674 B
Bash
Executable File
33 lines
674 B
Bash
Executable File
#!/bin/sh -e
|
|
|
|
export DESTDIR="$1"
|
|
|
|
# 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
|
|
|
|
# Don't build tests/fuzzing stuff.
|
|
find . -type f -name meson.build | while read -r f; do
|
|
sed "/subdir('tests')/d;/subdir('fuzzing')/d" "$f" > _
|
|
mv -f _ "$f"
|
|
done
|
|
|
|
meson \
|
|
--prefix=/usr \
|
|
-Dlibmount=disabled \
|
|
-Dinstalled_tests=false \
|
|
-Ddefault_library=both \
|
|
-Dman=false \
|
|
-Dfam=false \
|
|
-Dinternal_pcre=true \
|
|
. build
|
|
|
|
ninja -C build
|
|
ninja -C build install
|
|
|
|
rm -rf "$1/usr/bin/gdbus"
|