2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-07-02 14:02:27 +00:00

glib: remove sed -i

This commit is contained in:
Dylan Araps 2021-07-03 21:27:51 +00:00
parent afbd121d2e
commit 432ba44e0e
No known key found for this signature in database
GPG Key ID: 13295DAC2CF13B5C

View File

@ -2,13 +2,19 @@
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
# 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 -exec \
sed -i "/subdir('tests')/d;/subdir('fuzzing')/d" {} +
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 \