summaryrefslogtreecommitdiff
path: root/pcr/python2-djvulibre/PKGBUILD
blob: 1f8bbc7eed920f66e2b3be93a4fa15cc4365278c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Maintainer (Arch): Francois Garillot <francois[@]garillot.net>
# Contributor (Arch): Anton Bazhenov <anton.bazhenov at gmail>
# Contributor (Arch): Malkov Fyodor aka krox <iksut@yandex.ru>

pkgname=python2-djvulibre
pkgver=0.3.9
pkgrel=2
pkgdesc="A set of Python bindings for the DjVuLibre library"
arch=('i686' 'x86_64' 'mips64el')
url="http://jwilk.net/software/python-djvulibre"
license=('GPL2')
depends=('djvulibre' 'python2')
makedepends=('cython2')
source=("http://pypi.python.org/packages/source/p/${pkgname/2}/${pkgname/2}-${pkgver}.tar.gz")
md5sums=('07d187300ac590c45c4030ce3cd28117')

build() {
  cd "${srcdir}/${pkgname/2}-${pkgver}"
  sed -i "s/'cython'/'cython2'/" setup.py
  python2 setup.py build
}

package() {
  cd "${srcdir}/${pkgname/2}-${pkgver}"
  python2 setup.py install --root="${pkgdir}"
}