34 lines
1.0 KiB
Plaintext
34 lines
1.0 KiB
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 libpcre2-32 util-linux-32
|
|
|
|
name=glib-32
|
|
version=2.82.3
|
|
release=1
|
|
source=(https://download.gnome.org/sources/glib/${version:0:4}/${name%-*}-$version.tar.xz)
|
|
|
|
build() {
|
|
CFLAGS+=' -Wno-error=missing-include-dirs -mstackrealign'
|
|
CXXFLAGS+=" -Wno-error=missing-include-dirs -mstackrealign"
|
|
|
|
meson setup build ${name%-*}-$version \
|
|
--prefix=/usr \
|
|
--libdir=/usr/lib32 \
|
|
--libexecdir=/usr/lib32/glib \
|
|
--buildtype=plain \
|
|
--wrap-mode nodownload \
|
|
-D introspection=disabled \
|
|
-D tests=false
|
|
|
|
meson compile -C build -j ${JOBS:-1}
|
|
DESTDIR=$PKG meson install -C build
|
|
|
|
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
|
|
}
|