summaryrefslogtreecommitdiff
path: root/glib-32/Pkgfile
blob: 30f5c64da0f41eafdb45b87414212a10aec481d0 (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.3
    8 release=1
    9 source=(https://download.gnome.org/sources/glib/${version:0:4}/${name%-*}-$version.tar.xz
   10 	multilib.patch)
   11 
   12 build() {
   13 	patch -d ${name%-*}-$version -p1 -i $SRC/multilib.patch
   14 
   15 	meson setup build ${name%-*}-$version \
   16 		--prefix=/usr \
   17 		--libdir=/usr/lib32 \
   18 		--libexecdir=/usr/lib32/glib \
   19 		--buildtype=plain \
   20 		--wrap-mode nodownload
   21 
   22 	meson compile -C build -j ${JOBS:-1}
   23 	DESTDIR=$PKG meson install -C build
   24 
   25 	rm -r $PKG/usr/{share,include}
   26 	find $PKG/usr/bin -type f -not -name gio-querymodules \
   27 		-printf 'Removing %P\n' -delete
   28 	mv $PKG/usr/bin/gio-querymodules{,-32}
   29 
   30 	install -d $PKG/usr/lib32/gio/modules
   31 }

Generated by cgit