# Maintainer: Michael Schubert # Contributor: Florian Richter pkgname=pythonmagick pkgver=0.9.4 pkgrel=1 pkgdesc="PythonMagick provides object-oriented Python bindings for the ImageMagick library" arch=('i686' 'x86_64') url="http://www.imagemagick.org/" license=('custom') depends=('boost' 'python' 'imagemagick' 'libstdc++5') makedepends=('perl' 'automake') source=("http://www.imagemagick.org/download/python/PythonMagick-$pkgver.tar.gz" "fix_ssize.patch") md5sums=('3d76c575c94fd6649a5417b13fa9168b' '0d0c1a327e666ecf824fc179a00692eb') build() { cd $srcdir/PythonMagick-$pkgver patch -p0 -i $startdir/fix_ssize.patch || return 1 ./autogen.pl CPPFLAGS="`python-config --includes`" PYTHON_LIB="`python-config --libs`" ./configure --prefix=/usr sed -i 's:-l$(PYTHON_LIB):$(PYTHON_LIB):' Makefile make || return 1 make DESTDIR=$pkgdir install }