summaryrefslogtreecommitdiff
path: root/glib-32/Pkgfile
blob: 0986be7da8b86a40c9304bbb029b21e83e3a740d (plain)
    1 # Description: Low-level data structure handling, portability wrappers, and interfaces for runtime functionality
    2 # URL: https://www.gtk.org/
    3 # Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
    4 # Depends on: elfutils-32 glib libffi-32 libpcre-32 libpcre2-32 util-linux-32
    5 
    6 name=glib-32
    7 version=2.74.4
    8 release=1
    9 source=(https://download.gnome.org/sources/glib/${version:0:4}/${name%-*}-$version.tar.xz
   10 	multilib.patch
   11 	missing-include.patch)
   12 
   13 build() {
   14 	patch -d ${name%-*}-$version -p1 -i $SRC/multilib.patch
   15 	patch -d ${name%-*}-$version -p1 -i $SRC/missing-include.patch
   16 
   17 	meson setup build ${name%-*}-$version \
   18 		--prefix=/usr \
   19 		--libdir=/usr/lib32 \
   20 		--libexecdir=/usr/lib32/glib \
   21 		--buildtype=plain \
   22 		--wrap-mode nodownload
   23 
   24 	meson compile -C build -j ${JOBS:-1}
   25 	DESTDIR=$PKG meson install -C build
   26 
   27 	rm -r $PKG/usr/{share,include}
   28 	find $PKG/usr/bin -type f -not -name gio-querymodules \
   29 		-printf 'Removing %P\n' -delete
   30 	mv $PKG/usr/bin/gio-querymodules{,-32}
   31 
   32 	install -d $PKG/usr/lib32/gio/modules
   33 }

Generated by cgit