1 # Maintainer: Michael Schubert <mschu.dev at gmail>
3 pkgname=python2-pythonmagick
6 pkgdesc="Object-oriented Python2 bindings for the ImageMagick library"
8 url="http://www.imagemagick.org/"
10 depends=('boost' 'python2' 'imagemagick' 'libstdc++5')
11 makedepends=('perl' 'automake')
13 source=("http://www.imagemagick.org/download/python/PythonMagick-$pkgver.tar.gz")
14 md5sums=('fb5c88b7f0c93b4c32c3e66314cd86e5')
17 cd "$srcdir/PythonMagick-$pkgver"
20 CPPFLAGS="`python2-config --includes`" \
21 PYTHON_LIB="`python2-config --libs`" \
22 ./configure --prefix=/usr
24 sed -i 's:-l$(PYTHON_LIB):$(PYTHON_LIB):' Makefile
29 cd "$srcdir/PythonMagick-$pkgver"
30 pydir=`python2 -c "from distutils.sysconfig import get_python_lib; print get_python_lib()"`
32 make DESTDIR="$pkgdir" pyexecdir="$pydir" pythondir="$pydir" install
33 install -Dm644 LICENSE "$pkgdir/usr/share/licenses/python2-pythonmagick/LICENSE"