compat-32/glib-32/Pkgfile
2019-11-21 23:25:48 +11:00

27 lines
794 B
Plaintext

# Description: Low-level data structure handling, portability wrappers, and interfaces for runtime functionality
# URL: https://www.gtk.org/
# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
# Depends on: elfutils-32 glib libffi-32 libpcre-32 util-linux-32
name=glib-32
version=2.62.3
release=1
source=(https://download.gnome.org/sources/glib/${version:0:4}/${name%-*}-$version.tar.xz
multilib.patch)
build() {
cd ${name%-*}-$version
patch -p1 -i $SRC/multilib.patch
meson build --prefix=/usr --libdir=/usr/lib32
DESTDIR=$PKG ninja -C build -j ${JOBS:-1} install
rm -r $PKG/usr/{share,include}
find $PKG/usr/bin -type f -not -name gio-querymodules \
-printf 'Removing %P\n' -delete
mv $PKG/usr/bin/gio-querymodules{,-32}
install -d $PKG/usr/lib32/gio/modules
}