Advertisement
Guest User

PKGBUILD for PythonMagick

a guest
Aug 28th, 2011
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.98 KB | None | 0 0
  1. # Maintainer: Michael Schubert <mschu.dev at gmail>
  2. # Contributor: Florian Richter <Florian_Richter@gmx.de>
  3.  
  4. pkgname=pythonmagick
  5. pkgver=0.9.7
  6. pkgrel=1
  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=('c7d5cb4dd5701ca1e92d805a817f0a37')
  16.  
  17. build() {
  18.   cd "$srcdir/PythonMagick-$pkgver"
  19.   sed -i 's:boost_python:$(BOOST_PYTHON_LIB):' Makefile.am
  20.   sed -i 's:-l$(PYTHON_LIB):$(PYTHON_LIB):' Makefile.am
  21.   ./autogen.pl
  22.  
  23.   CPPFLAGS="`python-config --includes`" \
  24.   LIBS="`python-config --libs`" \
  25.   ./configure --prefix=/usr --with-boost-python=boost_python3
  26.  
  27.   make || return 1
  28.   make DESTDIR="$pkgdir" install
  29.  
  30.   install -Dm644 LICENSE "$pkgdir/usr/share/licenses/pythonmagick/LICENSE"
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement