Don't like ads? PRO users don't see any ads ;-)
Guest

PKGBUILD python-djvulibre

By: a guest on Apr 4th, 2011  |  syntax: Bash  |  size: 0.78 KB  |  hits: 64  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Contributor: Malkov Fyodor aka krox: iksut@yandex.ru
  2. pkgname=python-djvulibre
  3. pkgver=0.3.2
  4. pkgrel=1
  5. pkgdesc="python-djvulibre is a set of Python bindings for the DjVuLibre library, an open source implementation of DjVu"
  6. arch=('i686' 'x86_64')
  7. url='http://jwilk.net/software/python-djvulibre'
  8. license=('GPL2')
  9. depends=('python2')
  10. optdepends=()
  11. makedepends=('cython')
  12. source=(http://pypi.python.org/packages/source/p/$pkgname/$pkgname-$pkgver.tar.gz)
  13. md5sums=('51f895397f9a2c745f2a0532b8f49468')
  14.  
  15. build() {
  16.     cd "$srcdir/$pkgname-$pkgver"
  17.  
  18.     sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
  19.         -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
  20.         $(find ./ -name '*.py')
  21.  
  22.     python2 setup.py build
  23.     python2 setup.py install --root=$pkgdir
  24. }