[arch-commits] Commit in tesseract/trunk (PKGBUILD fix_man_page_html.patch)

Jelle van der Waa jelle at archlinux.org
Sun Nov 4 17:15:54 UTC 2018


    Date: Sunday, November 4, 2018 @ 17:15:54
  Author: jelle
Revision: 401483

Added:
  tesseract/trunk/fix_man_page_html.patch
Modified:
  tesseract/trunk/PKGBUILD

-------------------------+
 PKGBUILD                |   19 +++++++++++++------
 fix_man_page_html.patch |   11 +++++++++++
 2 files changed, 24 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-11-04 17:15:37 UTC (rev 401482)
+++ PKGBUILD	2018-11-04 17:15:54 UTC (rev 401483)
@@ -7,22 +7,29 @@
     spa_old sqi srp swa swe tam tel tgl tha tur ukr vie)
 
 pkgname=tesseract
-pkgver=3.05.01
-pkgrel=7
+pkgver=4.0.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)
+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=('05898f93c5d057fada49b9a116fc86ad9310ff1726a0f499c3e5211b3af47ec1'
-            '9cf5d576fcc47564f11265841e5ca839001e7e6f38ff7f7aacf46d15a96b00ff')
+        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

Added: fix_man_page_html.patch
===================================================================
--- fix_man_page_html.patch	                        (rev 0)
+++ fix_man_page_html.patch	2018-11-04 17:15:54 UTC (rev 401483)
@@ -0,0 +1,11 @@
+--- 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 $@ $<



More information about the arch-commits mailing list