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

# source: james
TARBALL=python-Imaging-$PKGVER.tar.gz
MD5SUM=fc14a54e1ce02a0225be8854bfba478e
SRC_URL=http://effbot.org/downloads/Imaging-1.1.7.tar.gz
BUNDLE=

SLACKREQ='python libjpeg-turbo freetype2'
SLACKDESC="python-pil: python-pil $PKGVER (Pythong Imaging Library)
python-pil: 
python-pil: The Python Imaging Library (PIL) adds image processing capabilities 
python-pil: to your Python interpreter. This library supports many file formats, 
python-pil: and provides powerful image processing and graphics capabilities.
python-pil: 
python-pil: http://pythonware.com/products/pil/
python-pil: 
python-pil: 
python-pil: 
python-pil: 
"

### default pkg_download
### defaulg pkg_prepare
### default pkg_package
### build
pkg_build() {
	export CFLAGS="$CFLAGS -fno-strict-aliasing"
	cd /tmp/Imaging*
	sed -i -e '/#include/ s|freetype/fterrors.h|freetype2/freetype/fterrors.h|' _imagingft.c &&
	python setup.py build_ext -i &&
	python selftest.py &&
	python setup.py install &&
	pkg_build_slackdesc
}


