forked from kiss-community/repo
27 lines
580 B
Bash
Executable File
27 lines
580 B
Bash
Executable File
#!/bin/sh -e
|
|
|
|
export DESTDIR="$1"
|
|
|
|
# Remove 'libelf' and 'util-linux' dependencies.
|
|
sed -i 's/HAVE_LIBELF/HAVE_KISS/' gio/meson.build
|
|
sed -i 's/libmount_dep.found()/false/' meson.build
|
|
|
|
# Don't build tests/fuzzing stuff.
|
|
find . -type f -name meson.build -exec \
|
|
sed -i "/subdir('tests')/d;/subdir('fuzzing')/d" {} +
|
|
|
|
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"
|