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

# source: BLFS 7.5
TARBALL=gdk-pixbuf-$PKGVER.tar.xz
MD5SUM=f20c0a5aa827332869c85c47d88394ce
SRC_URL=http://ftp.gnome.org/pub/gnome/sources/gdk-pixbuf/2.30/$TARBALL
BUNDLE=

SLACKREQ='glib32 libjpeg-turbo32 libpng32 libtiff32 libjasper32'
SLACKDESC="gdk-pixbuf32: gdk-pixbuf32 $PKGVER (GTK Pixel Buffer library)  
gdk-pixbuf32:  
gdk-pixbuf32: The Gdk Pixbuf is a toolkit for image loading and pixel buffer 
gdk-pixbuf32: manipulation. It is used by GTK+ 2 and GTK+ 3 to load and 
gdk-pixbuf32: manipulate images. In the past it was distributed as part of GTK+ 
gdk-pixbuf32: 2 but it was split off into a separate package in preparation for 
gdk-pixbuf32: the change to GTK+ 3.  
gdk-pixbuf32: 
gdk-pixbuf32: This contains 32-bit version of the library.
gdk-pixbuf32: 
gdk-pixbuf32:
"

### default pkg_download
### default pkg_prepare
pkg_package() {
	rm -rf bin sbin usr/bin usr/sbin usr/include usr/share/locale usr/share/gtk-doc usr/share/man
	mkdir -p usr/bin &&
	cp tmp/*-32 usr/bin
}

### build
pkg_build() {
	CONFFLAGS="$CONFFLAGS --with-x11 --with-libjasper"
	pkg_build_autoconf && pkg_build_slackdesc &&
	
	# multilib
	mv -v /usr/bin/gdk-pixbuf-csource /tmp/gdk-pixbuf-csource-32 &&
	mv -v /usr/bin/gdk-pixbuf-query-loaders /tmp/gdk-pixbuf-query-loaders-32 &&
	
	mv -v /usr/share/gir-1.0/* /usr/share/gir-1.0-32 &&
	rm -r /usr/share/gir-1.0/
}




