From 869e64b12767be3ef5b1e3628f337a9e116e2bbb Mon Sep 17 00:00:00 2001 From: root Date: Sat, 27 Oct 2012 01:51:21 -0700 Subject: Sat Oct 27 01:51:01 PDT 2012 --- community/tesseract/PKGBUILD | 9 +++++---- community/tesseract/tesseract.install | 7 +++++++ 2 files changed, 12 insertions(+), 4 deletions(-) create mode 100644 community/tesseract/tesseract.install (limited to 'community/tesseract') 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 # Contributor: Andreas Hauser @@ -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 +} -- cgit v1.2.3-54-g00ecf