summaryrefslogtreecommitdiff
path: root/pcr/python2-djvulibre/PKGBUILD
blob: 3cdd738900c6ddd007b59f9719fbef61a29c5eb5 (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
27
28
29
30
31
32
# Maintainer (AUR): Dmitry Kharitonov <darksab0r@gmail.com>
# Contributor (AUR): Francois Garillot <francois[@]garillot.net>
# Contributor (AUR): Anton Bazhenov <anton.bazhenov at gmail>
# Contributor (AUR): Malkov Fyodor aka krox <iksut@yandex.ru>

# parabola changes and rationale:
#  no changes.

pkgname=python2-djvulibre
_pkgname=python-djvulibre
pkgver=0.8
pkgrel=5
pkgdesc="A set of Python2 bindings for the DjVuLibre library"
arch=('i686' 'x86_64' 'armv7h')
url="http://jwilk.net/software/python-djvulibre"
license=('GPL2')
depends=('djvulibre' 'python2')
makedepends=('cython2')
source=("https://pypi.io/packages/source/p/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
sha256sums=('9d6bf3143fa540e8ce330949c9edff7847ad7cd715f7c02e2991212873a5f31b')

build() {
  cd "${srcdir}/${_pkgname}-${pkgver}"
  sed -i "s/'python'/'python2'/" setup.py
  python2 setup.py build
}

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