### this file is sourced not run
PKGVER=2.36.12
PKGBUILD=1
PKGARCH=x86_64

# source: post BLFS 8.2 2018-06-01
TARBALL=gdk-pixbuf-$PKGVER.tar.xz
MD5SUM=7305ab43d741270ffa53ad2896d7f530
SRC_URL=http://ftp.gnome.org/pub/gnome/sources/gdk-pixbuf/2.36/$TARBALL
BUNDLE=

SLACKREQ='glib libjpeg-turbo libpng libtiff libjasper'
SLACKDESC="gdk-pixbuf: gdk-pixbuf $PKGVER (GTK Pixel Buffer library)  
gdk-pixbuf:  
gdk-pixbuf: The Gdk Pixbuf is a toolkit for image loading and pixel buffer 
gdk-pixbuf: manipulation. It is used by GTK+ 2 and GTK+ 3 to load and 
gdk-pixbuf: manipulate images. In the past it was distributed as part of GTK+ 
gdk-pixbuf: 2 but it was split off into a separate package in preparation for 
gdk-pixbuf: the change to GTK+ 3.  
gdk-pixbuf: 
gdk-pixbuf: 
gdk-pixbuf: 
gdk-pixbuf:
"

### default pkg_download
### default pkg_prepare
### defaulg pkg_package
### build
pkg_build() {
	# add back old loaders
	cd /tmp/gdk-pixbuf*
	cp ../pkg/io*.c gdk-pixbuf &&
	patch -Np1 -i ../pkg/01-reinstate-pcx.patch	&&
	autoreconf -fi &&
	
	CONFFLAGS="$CONFFLAGS --with-x11 --with-libjasper" &&
	pkg_build_autoconf && pkg_build_slackdesc &&
	
	# multilib
	mv -v /usr/bin/gdk-pixbuf-csource{,-64}                     &&
	mv -v /usr/bin/gdk-pixbuf-query-loaders{,-64}               &&
	ln -sfv multiarch_wrapper /usr/bin/gdk-pixbuf-csource       &&
	ln -sfv multiarch_wrapper /usr/bin/gdk-pixbuf-query-loaders &&

	mv -v /usr/share/gir-1.0/* /usr/share/gir-1.0-64 &&
	rm -r /usr/share/gir-1.0/
}





