updated on Sun Jan 15 00:02:00 UTC 2012
[aur-mirror.git] / python2-pythonmagick / PKGBUILD
blob491460f5e8b044af804912122e9f72b4a3fae098
1 # Maintainer: Michael Schubert <mschu.dev at gmail>
3 pkgname=python2-pythonmagick
4 pkgver=0.9.7
5 pkgrel=3
6 pkgdesc="Object-oriented Python2 bindings for the ImageMagick library"
7 arch=('i686' 'x86_64')
8 url="http://www.imagemagick.org/"
9 license=('custom')
10 depends=('boost' 'python2' 'imagemagick' 'libstdc++5')
11 makedepends=('perl' 'automake')
12 options=('!libtool')
13 source=("http://www.imagemagick.org/download/python/PythonMagick-$pkgver.tar.gz")
14 md5sums=('fb5c88b7f0c93b4c32c3e66314cd86e5')
16 build() {
17   cd "$srcdir/PythonMagick-$pkgver"
18   ./autogen.pl
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
25   make
28 package() {
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"