compat-32/glib-32/Pkgfile

30 lines
873 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
2021-08-23 17:01:40 +02:00
version=2.68.4
release=1
source=(https://download.gnome.org/sources/glib/${version:0:4}/${name%-*}-$version.tar.xz
multilib.patch)
build() {
2020-11-15 06:01:49 +01:00
patch -d ${name%-*}-$version -p1 -i $SRC/multilib.patch
2020-11-15 06:01:49 +01:00
meson setup build ${name%-*}-$version \
--prefix=/usr \
--libdir=/usr/lib32 \
--buildtype=plain
2020-11-15 06:01:49 +01:00
meson compile -C build -j ${JOBS:-1}
DESTDIR=$PKG meson install -C build
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
}