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

# source: post BLFS 8.2 2018-06-01
TARBALL=imlib2-$PKGVER.tar.bz2
MD5SUM=390aa207693e051bb692f2db650c694b
SRC_URL=http://downloads.sourceforge.net/enlightenment/$TARBALL
BUNDLE=

SLACKREQ='giflib32 freetype2_32 libpng32 libjpeg-turbo32 libX11_32'
SLACKDESC="imlib2_32: imlib2_32 $PKGVER (Graphics library)  
imlib2_32:  
imlib2_32: Imlib2 is a convenience graphics library for fast file loading, 
imlib2_32: saving, rendering and manipulation. It can load and process several 
imlib2_32: popular formats, such as jpeg, gif, and png; it provides one unified 
imlib2_32: interface for all these formats.  
imlib2_32: 
imlib2_32: This contains 32-bit version of the library.
imlib2_32: 
imlib2_32: 
imlib2_32:
"

### default pkg_download
### default pkg_prepare
### package - only collect the libraries
pkg_package() {
	rm -rf bin sbin usr/bin usr/sbin usr/include usr/share
	mkdir -p usr/bin
	mv tmp/*-32 usr/bin
}

### build
pkg_build() {
	cd /tmp/imlib*
	
	CONFFLAGS="$CONFFLAGS --disable-static --disable-amd64 --enable-mmx --without-id3" && # --without-x
	pkg_build_autoconf &&
	pkg_build_slackdesc &&
		
	# multilib
	mv -v /usr/bin/imlib2-config /tmp/imlib2-config-32
}


