2019-07-23 07:16:17 -06:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
2019-10-08 02:16:02 -06:00
|
|
|
export DESTDIR="$1"
|
|
|
|
|
2020-02-26 01:18:52 -07:00
|
|
|
# Remove 'libelf' and 'util-linux' dependencies.
|
2020-03-15 11:18:12 -06:00
|
|
|
sed -i 's/HAVE_LIBELF/HAVE_KISS/' gio/meson.build
|
|
|
|
sed -i 's/libmount_dep.found()/false/' meson.build
|
2020-02-07 16:28:50 -07:00
|
|
|
|
2020-03-13 23:09:43 -06:00
|
|
|
# Don't build tests/fuzzing stuff.
|
|
|
|
find . -type f -name meson.build -exec \
|
|
|
|
sed -i "/subdir('tests')/d;/subdir('fuzzing')/d" {} +
|
2020-02-07 16:28:50 -07:00
|
|
|
|
2019-07-23 07:16:17 -06:00
|
|
|
meson \
|
|
|
|
--prefix=/usr \
|
2020-02-07 16:28:50 -07:00
|
|
|
-Dlibmount=disabled \
|
|
|
|
-Dinstalled_tests=false \
|
2020-06-20 05:49:26 -06:00
|
|
|
-Ddefault_library=both \
|
2019-07-23 07:16:17 -06:00
|
|
|
-Dman=false \
|
|
|
|
-Dfam=false \
|
2020-02-26 01:18:52 -07:00
|
|
|
-Dinternal_pcre=true \
|
2019-07-23 07:16:17 -06:00
|
|
|
. build
|
|
|
|
|
|
|
|
ninja -C build
|
2019-10-08 02:16:02 -06:00
|
|
|
ninja -C build install
|
2019-08-18 18:45:05 -06:00
|
|
|
|
2020-04-23 06:27:03 -06:00
|
|
|
# json-glib is a separate package which we build alongside
|
|
|
|
# glib (as if they were one and the same). The upstream for
|
|
|
|
# json-glib is effectively dead (only translation work) so
|
|
|
|
# this makes my life a little easier..
|
|
|
|
{
|
|
|
|
cd json-glib
|
|
|
|
|
2020-04-24 03:32:37 -06:00
|
|
|
# This mess of CFLAGS, etc is needed to point json-glib to
|
|
|
|
# the freshly built glib sources instead of the system's.
|
|
|
|
export PKG_CONFIG_PATH="$1/usr/lib/pkgconfig:$PKG_CONFIG_PATH"
|
|
|
|
export PATH="$1/usr/bin:$PATH"
|
|
|
|
export CFLAGS="$CFLAGS -I$1/usr/include/glib-2.0"
|
|
|
|
export CFLAGS="$CFLAGS -I$1/usr/lib/glib-2.0/include -pthread"
|
|
|
|
export LDFLAGS="$LDFLAGS -L$1/usr/lib/"
|
|
|
|
|
2020-04-23 06:27:03 -06:00
|
|
|
meson \
|
|
|
|
--prefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--mandir=/usr/share/man \
|
|
|
|
-Ddocs=false \
|
2020-09-30 22:16:04 -06:00
|
|
|
-Dintrospection=disabled \
|
2020-04-23 06:27:03 -06:00
|
|
|
. output
|
|
|
|
|
|
|
|
ninja -C output
|
|
|
|
ninja -C output install
|
|
|
|
}
|
|
|
|
|
2020-10-02 00:41:41 -06:00
|
|
|
kiss l dbus >/dev/null 2>&1 || rm -rf "$1/usr/bin/gdbus"
|