updated on Sun Jan 15 00:02:00 UTC 2012
[aur-mirror.git] / pythonmagick / PKGBUILD
blob8fd8cbf17304a5f8f7492de5167b1156fcd88b57
1 # Maintainer: Michael Schubert <mschu.dev at gmail>
2 # Contributor: Florian Richter <Florian_Richter@gmx.de>
4 pkgname=pythonmagick
5 pkgver=0.9.7
6 pkgrel=3
7 pkgdesc="Object-oriented Python bindings for the ImageMagick library"
8 arch=('i686' 'x86_64')
9 url="http://www.imagemagick.org/"
10 license=('custom')
11 depends=('boost' 'python' 'imagemagick' 'libstdc++5')
12 makedepends=('perl' 'automake')
13 options=('!libtool')
14 source=("http://www.imagemagick.org/download/python/PythonMagick-$pkgver.tar.gz")
15 md5sums=('fb5c88b7f0c93b4c32c3e66314cd86e5')
17 build() {
18   cd "$srcdir/PythonMagick-$pkgver"
19   ./autogen.pl
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
29   make
32 package() {
33   cd "$srcdir/PythonMagick-$pkgver"
34   make DESTDIR="$pkgdir" install
35   install -Dm644 LICENSE "$pkgdir/usr/share/licenses/pythonmagick/LICENSE"