SHARE
TWEET

PKGBUILD python-djvulibre

a guest Apr 4th, 2011 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top