
PKGBUILD python-djvulibre
By: a guest on
Apr 4th, 2011 | syntax:
Bash | size: 0.78 KB | hits: 64 | expires: Never
# Contributor: Malkov Fyodor aka krox: iksut@yandex.ru
pkgname=python-djvulibre
pkgver=0.3.2
pkgrel=1
pkgdesc="python-djvulibre is a set of Python bindings for the DjVuLibre library, an open source implementation of DjVu"
arch=('i686' 'x86_64')
url='http://jwilk.net/software/python-djvulibre'
license=('GPL2')
depends=('python2')
optdepends=()
makedepends=('cython')
source=(http://pypi.python.org/packages/source/p/$pkgname/$pkgname-$pkgver.tar.gz)
md5sums=('51f895397f9a2c745f2a0532b8f49468')
build() {
cd "$srcdir/$pkgname-$pkgver"
sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
-e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
$(find ./ -name '*.py')
python2 setup.py build
python2 setup.py install --root=$pkgdir
}