diff options
-rw-r--r-- | pcr/ocrodjvu/PKGBUILD | 24 | ||||
-rw-r--r-- | pcr/python2-djvulibre/PKGBUILD | 26 |
2 files changed, 50 insertions, 0 deletions
diff --git a/pcr/ocrodjvu/PKGBUILD b/pcr/ocrodjvu/PKGBUILD new file mode 100644 index 000000000..296b9d433 --- /dev/null +++ b/pcr/ocrodjvu/PKGBUILD @@ -0,0 +1,24 @@ +# Maintainer: Francois Garillot <francois[@]garillot.net> +# Contributor: Malkov Fyodor aka krox: iksut@yandex.ru +pkgname=ocrodjvu +pkgver=0.7.13 +pkgrel=1 +pkgdesc="ocrodjvu is a wrapper for OCR systems, that allows you to perform OCR on DjVu files." +arch=('i686' 'x86_64') +url='http://jwilk.net/software/ocrodjvu' +license=('GPL2') +depends=('python2' 'python2-lxml' 'python2-djvulibre') +optdepends=('cuneiform' 'hocr') +source=(http://pypi.python.org/packages/source/o/$pkgname/$pkgname-$pkgver.tar.gz) +md5sums=('9b96520497e12ebcf68e61a056aad5a5') + +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 +} diff --git a/pcr/python2-djvulibre/PKGBUILD b/pcr/python2-djvulibre/PKGBUILD new file mode 100644 index 000000000..0d648272a --- /dev/null +++ b/pcr/python2-djvulibre/PKGBUILD @@ -0,0 +1,26 @@ +# Maintainer: Francois Garillot <francois[@]garillot.net> +# Contributor: Anton Bazhenov <anton.bazhenov at gmail> +# Contributor: 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') +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}" +} |