1 # Maintainer: Michael Schubert <mschu.dev at gmail>
2 # Contributor: Florian Richter <Florian_Richter@gmx.de>
7 pkgdesc="Object-oriented Python bindings for the ImageMagick library"
9 url="http://www.imagemagick.org/"
11 depends=('boost' 'python' 'imagemagick' 'libstdc++5')
12 makedepends=('perl' 'automake')
14 source=("http://www.imagemagick.org/download/python/PythonMagick-$pkgver.tar.gz")
15 md5sums=('fb5c88b7f0c93b4c32c3e66314cd86e5')
18 cd "$srcdir/PythonMagick-$pkgver"
21 CPPFLAGS="`python-config --includes`" \
22 PYTHON_LIB="`python-config --libs`" \
23 ./configure --prefix=/usr --with-boost-python=boost_python3
25 sed -i 's:-l$(PYTHON_LIB):$(PYTHON_LIB):;
26 s:-lboost_python:-lboost_python3:' Makefile
27 sed -i '1s:_:PythonMagick._PythonMagick as _:' PythonMagick/__init__.py
33 cd "$srcdir/PythonMagick-$pkgver"
34 make DESTDIR="$pkgdir" install
35 install -Dm644 LICENSE "$pkgdir/usr/share/licenses/pythonmagick/LICENSE"