diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2019-07-09 06:46:11 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2019-07-09 07:11:42 +0000 |
commit | 119a7873e7af9ff2c7ddc0fbfdf59dd2c898c7bf (patch) | |
tree | 594757e8a73a9635a0529e282e3236fc2be2d086 /community/tesseract-ocr | |
parent | f4fb583054fe7ba57a6cfd2e4e05a62536d52f38 (diff) | |
download | aports-119a7873e7af9ff2c7ddc0fbfdf59dd2c898c7bf.tar.bz2 aports-119a7873e7af9ff2c7ddc0fbfdf59dd2c898c7bf.tar.xz |
community/tesseract-ocr: upgrade to 4.1.0
Diffstat (limited to 'community/tesseract-ocr')
-rw-r--r-- | community/tesseract-ocr/APKBUILD | 17 | ||||
-rw-r--r-- | community/tesseract-ocr/include-time-h.patch | 12 |
2 files changed, 22 insertions, 7 deletions
diff --git a/community/tesseract-ocr/APKBUILD b/community/tesseract-ocr/APKBUILD index 8333609813..f51cc11001 100644 --- a/community/tesseract-ocr/APKBUILD +++ b/community/tesseract-ocr/APKBUILD @@ -1,7 +1,7 @@ # Contributor: Carlo Landmeter <clandmeter@gmail.com> # Maintainer: Francesco Colista <fcolista@alpinelinux.org> pkgname=tesseract-ocr -pkgver=4.0.0 +pkgver=4.1.0 _tdver=4.0.0 pkgrel=0 pkgdesc="open source OCR engine" @@ -13,8 +13,8 @@ makedepends="automake autoconf libtool leptonica-dev pango-dev icu-dev subpackages="$pkgname-dev" source="$pkgname-$pkgver.tar.gz::https://github.com/tesseract-ocr/tesseract/archive/$pkgver.tar.gz https://github.com/tesseract-ocr/tessdata/archive/${_tdver}/tessdata-${_tdver}.tar.gz + include-time-h.patch " - _langs="afr ara aze bel ben bul cat ces chi_sim chi_tra chr dan deu ell 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 @@ -26,9 +26,12 @@ done builddir="$srcdir"/${pkgname/-*}-$pkgver -build() { - cd "$builddir" +prepare() { + default_prepare ./autogen.sh +} + +build() { ./configure \ --build=$CBUILD \ --host=$CHOST \ @@ -43,7 +46,6 @@ build() { } package() { - cd "$builddir" make DESTDIR="$pkgdir" install make DESTDIR="$pkgdir" training-install install -D "$srcdir"/tessdata-$_tdver/eng.* \ @@ -61,5 +63,6 @@ _lang_data() { "$subpkgdir"/usr/share/tessdata/ } -sha512sums="69e57d4ba1fc43d212fd0fff69a2b5d48a3b37cfee7054fdc083cbb7e04d92317609a32e457229661d70ce8d9b16c9d25e81bfc3861db660dd2c8f292202d447 tesseract-ocr-4.0.0.tar.gz -cd71bb99d44eefb53b359ba64b472c509fff773b2737a8d51e10d5d52d9a3a7ff870d470b1c72a7c78be3263b5ecfbb58a6eab13cf7128d8599681676cdcef6b tessdata-4.0.0.tar.gz" +sha512sums="d617f5c5b826640b2871dbe3d7973bcc5e66fafd837921a20e009d683806ed50f0f258aa455019d99fc54f5cb65c2fa0380e3a3c92b39ab0684b8799c730b09d tesseract-ocr-4.1.0.tar.gz +cd71bb99d44eefb53b359ba64b472c509fff773b2737a8d51e10d5d52d9a3a7ff870d470b1c72a7c78be3263b5ecfbb58a6eab13cf7128d8599681676cdcef6b tessdata-4.0.0.tar.gz +3cc100bfa4eccac4123311c90626e747576b9d4b8b998f5e12bf6b2b9b0ffd8d9ea0160d11747e09d00283c4f782147c9b97c7b5c31679fb44784c2314de3cab include-time-h.patch" diff --git a/community/tesseract-ocr/include-time-h.patch b/community/tesseract-ocr/include-time-h.patch new file mode 100644 index 0000000000..4ff1de4509 --- /dev/null +++ b/community/tesseract-ocr/include-time-h.patch @@ -0,0 +1,12 @@ +diff --git a/src/ccutil/ocrclass.h b/src/ccutil/ocrclass.h +index d39a6dd..3fd2bee 100644 +--- a/src/ccutil/ocrclass.h ++++ b/src/ccutil/ocrclass.h +@@ -28,6 +28,7 @@ + + #include <chrono> + #include <ctime> ++#include <sys/time.h> + #ifdef _WIN32 + #include <winsock2.h> // for timeval + #endif |