[arch-commits] Commit in tesseract/repos/community-x86_64 (5 files)
Jelle van der Waa
jelle at archlinux.org
Sun Jul 7 19:32:38 UTC 2019
Date: Sunday, July 7, 2019 @ 19:32:37
Author: jelle
Revision: 487651
archrelease: copy trunk to community-x86_64
Added:
tesseract/repos/community-x86_64/PKGBUILD
(from rev 487650, tesseract/trunk/PKGBUILD)
tesseract/repos/community-x86_64/tesseract.install
(from rev 487650, tesseract/trunk/tesseract.install)
Deleted:
tesseract/repos/community-x86_64/PKGBUILD
tesseract/repos/community-x86_64/fix_man_page_html.patch
tesseract/repos/community-x86_64/tesseract.install
-------------------------+
PKGBUILD | 87 +++++++++++++++++++++-------------------------
fix_man_page_html.patch | 11 -----
tesseract.install | 14 +++----
3 files changed, 47 insertions(+), 65 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2019-07-07 19:32:27 UTC (rev 487650)
+++ PKGBUILD 2019-07-07 19:32:37 UTC (rev 487651)
@@ -1,47 +0,0 @@
-# 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 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=4.0.0
-pkgrel=2
-pkgdesc="An OCR program"
-arch=(x86_64)
-url="https://github.com/tesseract-ocr/tesseract"
-license=("APACHE")
-depends=(libpng libtiff libjpeg-turbo zlib giflib gcc-libs leptonica)
-makedepends=(icu cairo pango asciidoc)
-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/bf82613055ebc6e63d9e3b438a5c234bfd638c93/osd.traineddata
- fix_man_page_html.patch)
-sha256sums=('a1f5422ca49a32e5f35c54dee5112b11b99928fc9f4ee6695cdc6768d69f61dd'
- '9cf5d576fcc47564f11265841e5ca839001e7e6f38ff7f7aacf46d15a96b00ff'
- 'd5fa9a8605afa775255404acb882471f894dc0d4de87eb8333fd155d649b7235')
-
-prepare() {
- cd "$srcdir"/$pkgname-${pkgver}
- patch -Np0 -i "${srcdir}/fix_man_page_html.patch"
-}
-
-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-x86_64/PKGBUILD (from rev 487650, tesseract/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2019-07-07 19:32:37 UTC (rev 487651)
@@ -0,0 +1,40 @@
+# 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 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=4.1.0
+pkgrel=1
+pkgdesc="An OCR program"
+arch=(x86_64)
+url="https://github.com/tesseract-ocr/tesseract"
+license=("APACHE")
+depends=(libpng libtiff libjpeg-turbo zlib giflib gcc-libs leptonica)
+makedepends=(icu cairo pango asciidoc)
+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/bf82613055ebc6e63d9e3b438a5c234bfd638c93/osd.traineddata)
+sha256sums=('5c5ed5f1a76888dc57a83704f24ae02f8319849f5c4cf19d254296978a1a1961'
+ '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
+}
Deleted: fix_man_page_html.patch
===================================================================
--- fix_man_page_html.patch 2019-07-07 19:32:27 UTC (rev 487650)
+++ fix_man_page_html.patch 2019-07-07 19:32:37 UTC (rev 487651)
@@ -1,11 +0,0 @@
---- doc/Makefile.am 2018-11-04 17:53:43.979198215 +0100
-+++ doc/Makefile.am 2018-11-04 17:54:07.849192304 +0100
-@@ -36,7 +36,7 @@
- html: $(patsubst %,%.html,$(man_MANS))
-
- %: %.asc
-- $(asciidoc) -o $@ $<
-+ a2x --doctype manpage --format manpage $<
-
- %.html: %.asc
- asciidoc -b html5 -o $@ $<
Deleted: tesseract.install
===================================================================
--- tesseract.install 2019-07-07 19:32:27 UTC (rev 487650)
+++ tesseract.install 2019-07-07 19:32:37 UTC (rev 487651)
@@ -1,7 +0,0 @@
-post_install() {
- echo "You must install one of tesseract-data-* packages or whole tesseract-data group"
-}
-
-post_upgrade() {
- post_install
-}
Copied: tesseract/repos/community-x86_64/tesseract.install (from rev 487650, tesseract/trunk/tesseract.install)
===================================================================
--- tesseract.install (rev 0)
+++ tesseract.install 2019-07-07 19:32:37 UTC (rev 487651)
@@ -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