mirror of
https://codeberg.org/kiss-community/repo
synced 2024-08-21 21:46:18 +00:00
26 lines
539 B
Bash
Executable File
26 lines
539 B
Bash
Executable File
#!/bin/sh -e
|
|
|
|
export DESTDIR="$1"
|
|
|
|
# Remove 'libelf' and 'util-linux' dependencies.
|
|
sed -i 's/if have_libelf/if not have_libelf/' gio/meson.build
|
|
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 \
|
|
-Dinternal_pcre=true \
|
|
. build
|
|
|
|
ninja -C build
|
|
ninja -C build install
|
|
|
|
# Purge gdbus.
|
|
rm -rf "$1/usr/bin/gdbus"
|