blob: 922bd5301d92a9aef1d92a4ee2fab390d28d3b8e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#!/bin/sh -e
export DESTDIR="$1"
# Remove 'libelf' dependency.
sed 's/if have_libelf/if not have_libelf/' gio/meson.build > _
cat _ > gio/meson.build; rm -f _
# tests/fuzzing now depend on dbus. Remove them from the build.
find . -type f -name meson.build -exec \
clsed "/subdir('tests')/d;/subdir('fuzzing')/d" {} +
meson \
--prefix=/usr \
-Ddefault_library=both \
-Dman=false \
-Dfam=false \
. build
ninja -C build
ninja -C build install
# Purge gdbus.
rm -rf "$1/usr/bin/gdbus"
|