summaryrefslogtreecommitdiff
path: root/community/tesseract
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-10-27 01:51:21 -0700
committerroot <root@rshg054.dnsready.net>2012-10-27 01:51:21 -0700
commit869e64b12767be3ef5b1e3628f337a9e116e2bbb (patch)
tree146e63e85bbe4e336ae423d989d06b321fc16cec /community/tesseract
parentff20b83d60041f745a579e10770706b0b49d5617 (diff)
Sat Oct 27 01:51:01 PDT 2012
Diffstat (limited to 'community/tesseract')
-rw-r--r--community/tesseract/PKGBUILD9
-rw-r--r--community/tesseract/tesseract.install7
2 files changed, 12 insertions, 4 deletions
diff --git a/community/tesseract/PKGBUILD b/community/tesseract/PKGBUILD
index 0ea9a782e..a55707eb7 100644
--- a/community/tesseract/PKGBUILD
+++ b/community/tesseract/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 74642 2012-08-01 04:56:09Z spupykin $
+# $Id: PKGBUILD 78897 2012-10-26 13:58:28Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Andreas Hauser <andy-aur@splashground.de>
@@ -9,7 +9,7 @@ kor ell rus por bul lav lit pol dan-frak deu dan ces cat eng chi_tra chi_sim)
pkgbase=tesseract
pkgname=(tesseract $(for l in ${_langs[@]}; do echo tesseract-data-${l}; done))
pkgver=3.01
-pkgrel=3
+pkgrel=5
pkgdesc="An OCR programm"
arch=(i686 x86_64)
url="http://code.google.com/p/tesseract-ocr"
@@ -63,10 +63,11 @@ build() {
}
package_tesseract() {
- cd $srcdir/$pkgname-$pkgver
+ install=tesseract.install
+ optdepends=($(for l in ${_langs[@]}; do echo tesseract-data-${l}; done))
+ cd $srcdir/$pkgname-$pkgver
make DESTDIR=$pkgdir install
-
mkdir -p $pkgdir/usr/share/tessdata
}
diff --git a/community/tesseract/tesseract.install b/community/tesseract/tesseract.install
new file mode 100644
index 000000000..114b82821
--- /dev/null
+++ b/community/tesseract/tesseract.install
@@ -0,0 +1,7 @@
+post_install() {
+ echo "You must install one of tesseract-data-* packages or whole tesseract-data group"
+}
+
+post_upgrade() {
+ post_install
+}