compat-32/glib-32/Pkgfile

27 lines
794 B
Plaintext
Raw Normal View History

# Description: Low-level data structure handling, portability wrappers, and interfaces for runtime functionality
2017-01-28 08:19:32 +01:00
# 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
2020-07-04 13:19:41 +02:00
version=2.64.4
release=1
source=(https://download.gnome.org/sources/glib/${version:0:4}/${name%-*}-$version.tar.xz
multilib.patch)
build() {
2017-04-12 10:08:48 +02:00
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}
2019-07-27 14:04:33 +02:00
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
}