summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-02-11 01:57:29 -0200
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-02-11 01:57:29 -0200
commit58d2c24ac0c4e30583e52eb549c4ceb9313de126 (patch)
tree9f12cc734dfef07a2604ac66e4b9d412f32049e1
parentfdfd2228df9734771f20baba79e26ce14d518505 (diff)
parent697a552b452e09f351a4e5adfb661582828cb691 (diff)
downloadabslibre-58d2c24ac0c4e30583e52eb549c4ceb9313de126.tar.gz
abslibre-58d2c24ac0c4e30583e52eb549c4ceb9313de126.tar.bz2
abslibre-58d2c24ac0c4e30583e52eb549c4ceb9313de126.zip
Merge branch 'master' of ssh://projects.parabola.nu/~git/abslibre/abslibre
-rw-r--r--pcr/ocrodjvu/PKGBUILD18
1 files changed, 14 insertions, 4 deletions
diff --git a/pcr/ocrodjvu/PKGBUILD b/pcr/ocrodjvu/PKGBUILD
index d89011b57..a5b8767ed 100644
--- a/pcr/ocrodjvu/PKGBUILD
+++ b/pcr/ocrodjvu/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer (Arch): Francois Garillot <francois[@]garillot.net>
# Contributor (Arch): Malkov Fyodor aka krox: iksut@yandex.ru
pkgname=ocrodjvu
-pkgver=0.7.13
+pkgver=0.7.19
pkgrel=1
pkgdesc="ocrodjvu is a wrapper for OCR systems, that allows you to perform OCR on DjVu files."
arch=('i686' 'x86_64' 'mips64el')
@@ -9,16 +9,26 @@ 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')
+source=(http://pypi.python.org/packages/source/o/$pkgname/$pkgname-$pkgver.tar.gz{,.asc})
+validpgpkeys=('CDB5A1243ACDB63009AD07212D4EB3A6015475F5')
-build() {
+prepare() {
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')
+}
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
python2 setup.py build
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
python2 setup.py install --root=$pkgdir
}
+md5sums=('76cdf9addb9d1d0f6b13f06ba308b9a1'
+ 'SKIP')