### this file is sourced not run
PKGVER=2.56.3
PKGBUILD=1
PKGARCH=i686

# source: post BLFS 8.2 2018-05-31
TARBALL=glib-$PKGVER.tar.xz
MD5SUM=f0b13af8f741fccdd43ed0adbcd276ec
SRC_URL=http://ftp.gnome.org/pub/gnome/sources/glib/2.56/$TARBALL
BUNDLE=

SLACKREQ='libffi32 libpcre32 libattr32 dbus32'
SLACKDESC="glib32: glib32 $PKGVER (GTK low-level library)  
glib32:  
glib32: The GLib package contains a low-level libraries useful for providing 
glib32: data structure handling for C, portability wrappers and interfaces for 
glib32: such runtime functionality as an event loop, threads, dynamic loading 
glib32: and an object system.  
glib32: 
glib32: This contains the 32-bit version of the library.
glib32: 
glib32: 
glib32:
"

### default pkg_download
### prepare
pkg_prepare() {
	pkg_prepare_default &&
	cd tmp/glib* &&
	patch -Np1 -i $CHROOT_DIR/tmp/pkg/jemimah-glib-patches.patch
}

### default pkg_prepare
pkg_package() {
	rm -rf bin sbin usr/bin usr/sbin usr/include usr/share 
}

### build
pkg_build() {
	cd /tmp/glib*
	export CFLAGS="-DG_DISABLE_ASSERT -DG_DISABLE_CAST_CHECKS -DNDEBUG" NM=nm
	CONFFLAGS="$CONFFLAGS --with-pcre=system --host ${CLFS_TARGET32}"	
	pkg_build_autoconf && pkg_build_slackdesc
}


