[arch-commits] Commit in tesseract/repos (6 files)
Evangelos Foutras
foutrelis at archlinux.org
Tue Apr 25 05:57:23 UTC 2017
Date: Tuesday, April 25, 2017 @ 05:57:23
Author: foutrelis
Revision: 225260
archrelease: copy trunk to community-staging-i686, community-staging-x86_64
Added:
tesseract/repos/community-staging-i686/
tesseract/repos/community-staging-i686/PKGBUILD
(from rev 225259, tesseract/trunk/PKGBUILD)
tesseract/repos/community-staging-i686/tesseract.install
(from rev 225259, tesseract/trunk/tesseract.install)
tesseract/repos/community-staging-x86_64/
tesseract/repos/community-staging-x86_64/PKGBUILD
(from rev 225259, tesseract/trunk/PKGBUILD)
tesseract/repos/community-staging-x86_64/tesseract.install
(from rev 225259, tesseract/trunk/tesseract.install)
--------------------------------------------+
community-staging-i686/PKGBUILD | 42 +++++++++++++++++++++++++++
community-staging-i686/tesseract.install | 7 ++++
community-staging-x86_64/PKGBUILD | 42 +++++++++++++++++++++++++++
community-staging-x86_64/tesseract.install | 7 ++++
4 files changed, 98 insertions(+)
Copied: tesseract/repos/community-staging-i686/PKGBUILD (from rev 225259, tesseract/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2017-04-25 05:57:23 UTC (rev 225260)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Andreas Hauser <andy-aur at splashground.de>
+
+_langs=(afr ara aze bel ben bul cat ces chi_sim chi_tra chr dan deu ell
+eng enm epo epo_alt equ est eus fin fra frk frm glg grc heb hin hrv hun
+ind isl ita ita_old jpn kan kor lav lit mal mkd mlt msa nld nor pol por
+ron rus slk slv spa spa_old sqi srp swa swe tam tel tgl tha tur ukr vie)
+
+pkgname=tesseract
+pkgver=3.05.00
+pkgrel=2
+pkgdesc="An OCR program"
+arch=(i686 x86_64)
+#url="http://code.google.com/p/tesseract-ocr"
+url="https://github.com/tesseract-ocr/tesseract"
+license=("APACHE")
+depends=(libpng libtiff libjpeg zlib giflib gcc-libs leptonica)
+makedepends=(icu cairo pango)
+install=tesseract.install
+optdepends=('icu' 'cairo' 'pango'
+ $(for l in ${_langs[@]}; do echo tesseract-data-${l}; done))
+source=($pkgname-$pkgver.tar.gz::https://github.com/tesseract-ocr/tesseract/archive/$pkgver.tar.gz
+ https://github.com/tesseract-ocr/tessdata/raw/master/osd.traineddata)
+sha256sums=('3fe83e06d0f73b39f6e92ed9fc7ccba3ef734877b76aa5ddaaa778fac095d996'
+ '9cf5d576fcc47564f11265841e5ca839001e7e6f38ff7f7aacf46d15a96b00ff')
+
+build() {
+ cd "$srcdir"/$pkgname-${pkgver}
+ [ -x configure ] || ./autogen.sh
+ [ -f Makefile ] || ./configure --prefix=/usr
+ make
+ make training
+}
+
+package() {
+ cd "$srcdir"/$pkgname-${pkgver}
+ make DESTDIR="$pkgdir" install
+ make DESTDIR="$pkgdir" training-install
+ mkdir -p "$pkgdir"/usr/share/tessdata
+ install -Dm0644 "$srcdir"/osd.traineddata "$pkgdir"/usr/share/tessdata/osd.traineddata
+}
Copied: tesseract/repos/community-staging-i686/tesseract.install (from rev 225259, tesseract/trunk/tesseract.install)
===================================================================
--- community-staging-i686/tesseract.install (rev 0)
+++ community-staging-i686/tesseract.install 2017-04-25 05:57:23 UTC (rev 225260)
@@ -0,0 +1,7 @@
+post_install() {
+ echo "You must install one of tesseract-data-* packages or whole tesseract-data group"
+}
+
+post_upgrade() {
+ post_install
+}
Copied: tesseract/repos/community-staging-x86_64/PKGBUILD (from rev 225259, tesseract/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2017-04-25 05:57:23 UTC (rev 225260)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Andreas Hauser <andy-aur at splashground.de>
+
+_langs=(afr ara aze bel ben bul cat ces chi_sim chi_tra chr dan deu ell
+eng enm epo epo_alt equ est eus fin fra frk frm glg grc heb hin hrv hun
+ind isl ita ita_old jpn kan kor lav lit mal mkd mlt msa nld nor pol por
+ron rus slk slv spa spa_old sqi srp swa swe tam tel tgl tha tur ukr vie)
+
+pkgname=tesseract
+pkgver=3.05.00
+pkgrel=2
+pkgdesc="An OCR program"
+arch=(i686 x86_64)
+#url="http://code.google.com/p/tesseract-ocr"
+url="https://github.com/tesseract-ocr/tesseract"
+license=("APACHE")
+depends=(libpng libtiff libjpeg zlib giflib gcc-libs leptonica)
+makedepends=(icu cairo pango)
+install=tesseract.install
+optdepends=('icu' 'cairo' 'pango'
+ $(for l in ${_langs[@]}; do echo tesseract-data-${l}; done))
+source=($pkgname-$pkgver.tar.gz::https://github.com/tesseract-ocr/tesseract/archive/$pkgver.tar.gz
+ https://github.com/tesseract-ocr/tessdata/raw/master/osd.traineddata)
+sha256sums=('3fe83e06d0f73b39f6e92ed9fc7ccba3ef734877b76aa5ddaaa778fac095d996'
+ '9cf5d576fcc47564f11265841e5ca839001e7e6f38ff7f7aacf46d15a96b00ff')
+
+build() {
+ cd "$srcdir"/$pkgname-${pkgver}
+ [ -x configure ] || ./autogen.sh
+ [ -f Makefile ] || ./configure --prefix=/usr
+ make
+ make training
+}
+
+package() {
+ cd "$srcdir"/$pkgname-${pkgver}
+ make DESTDIR="$pkgdir" install
+ make DESTDIR="$pkgdir" training-install
+ mkdir -p "$pkgdir"/usr/share/tessdata
+ install -Dm0644 "$srcdir"/osd.traineddata "$pkgdir"/usr/share/tessdata/osd.traineddata
+}
Copied: tesseract/repos/community-staging-x86_64/tesseract.install (from rev 225259, tesseract/trunk/tesseract.install)
===================================================================
--- community-staging-x86_64/tesseract.install (rev 0)
+++ community-staging-x86_64/tesseract.install 2017-04-25 05:57:23 UTC (rev 225260)
@@ -0,0 +1,7 @@
+post_install() {
+ echo "You must install one of tesseract-data-* packages or whole tesseract-data group"
+}
+
+post_upgrade() {
+ post_install
+}
More information about the arch-commits
mailing list