From 8a2f9dc3d42166e6929ef099b19f4eb7f2f1f88b Mon Sep 17 00:00:00 2001 From: jbu Date: Mon, 13 Jul 2015 09:42:44 +0200 Subject: [PATCH] tesseract-ocr: update to 3.04.00 + The project moved to github. + Download the git revision of current language data. --- ...esseract-ocr-epo_alt => tesseract-ocr-amh} | 0 ...esseract-ocr-ipa_old => tesseract-ocr-asm} | 0 srcpkgs/tesseract-ocr-aze_cyrl | 1 + srcpkgs/tesseract-ocr-bod | 1 + srcpkgs/tesseract-ocr-bos | 1 + srcpkgs/tesseract-ocr-ceb | 1 + srcpkgs/tesseract-ocr-cym | 1 + srcpkgs/tesseract-ocr-dzo | 1 + srcpkgs/tesseract-ocr-fas | 1 + srcpkgs/tesseract-ocr-gle | 1 + srcpkgs/tesseract-ocr-guj | 1 + srcpkgs/tesseract-ocr-hat | 1 + srcpkgs/tesseract-ocr-iku | 1 + srcpkgs/tesseract-ocr-jav | 1 + srcpkgs/tesseract-ocr-kat | 1 + srcpkgs/tesseract-ocr-kat_old | 1 + srcpkgs/tesseract-ocr-kaz | 1 + srcpkgs/tesseract-ocr-khm | 1 + srcpkgs/tesseract-ocr-kir | 1 + srcpkgs/tesseract-ocr-kur | 1 + srcpkgs/tesseract-ocr-lao | 1 + srcpkgs/tesseract-ocr-lat | 1 + srcpkgs/tesseract-ocr-mar | 1 + srcpkgs/tesseract-ocr-mya | 1 + srcpkgs/tesseract-ocr-nep | 1 + srcpkgs/tesseract-ocr-ori | 1 + srcpkgs/tesseract-ocr-osd | 1 + srcpkgs/tesseract-ocr-pan | 1 + srcpkgs/tesseract-ocr-pus | 1 + srcpkgs/tesseract-ocr-san | 1 + srcpkgs/tesseract-ocr-sin | 1 + srcpkgs/tesseract-ocr-srp_latn | 1 + srcpkgs/tesseract-ocr-syr | 1 + srcpkgs/tesseract-ocr-tgk | 1 + srcpkgs/tesseract-ocr-tir | 1 + srcpkgs/tesseract-ocr-uig | 1 + srcpkgs/tesseract-ocr-urd | 1 + srcpkgs/tesseract-ocr-uzb | 1 + srcpkgs/tesseract-ocr-uzb_cyrl | 1 + srcpkgs/tesseract-ocr-yid | 1 + srcpkgs/tesseract-ocr/template | 1138 ++++++++--------- 41 files changed, 555 insertions(+), 621 deletions(-) rename srcpkgs/{tesseract-ocr-epo_alt => tesseract-ocr-amh} (100%) rename srcpkgs/{tesseract-ocr-ipa_old => tesseract-ocr-asm} (100%) create mode 120000 srcpkgs/tesseract-ocr-aze_cyrl create mode 120000 srcpkgs/tesseract-ocr-bod create mode 120000 srcpkgs/tesseract-ocr-bos create mode 120000 srcpkgs/tesseract-ocr-ceb create mode 120000 srcpkgs/tesseract-ocr-cym create mode 120000 srcpkgs/tesseract-ocr-dzo create mode 120000 srcpkgs/tesseract-ocr-fas create mode 120000 srcpkgs/tesseract-ocr-gle create mode 120000 srcpkgs/tesseract-ocr-guj create mode 120000 srcpkgs/tesseract-ocr-hat create mode 120000 srcpkgs/tesseract-ocr-iku create mode 120000 srcpkgs/tesseract-ocr-jav create mode 120000 srcpkgs/tesseract-ocr-kat create mode 120000 srcpkgs/tesseract-ocr-kat_old create mode 120000 srcpkgs/tesseract-ocr-kaz create mode 120000 srcpkgs/tesseract-ocr-khm create mode 120000 srcpkgs/tesseract-ocr-kir create mode 120000 srcpkgs/tesseract-ocr-kur create mode 120000 srcpkgs/tesseract-ocr-lao create mode 120000 srcpkgs/tesseract-ocr-lat create mode 120000 srcpkgs/tesseract-ocr-mar create mode 120000 srcpkgs/tesseract-ocr-mya create mode 120000 srcpkgs/tesseract-ocr-nep create mode 120000 srcpkgs/tesseract-ocr-ori create mode 120000 srcpkgs/tesseract-ocr-osd create mode 120000 srcpkgs/tesseract-ocr-pan create mode 120000 srcpkgs/tesseract-ocr-pus create mode 120000 srcpkgs/tesseract-ocr-san create mode 120000 srcpkgs/tesseract-ocr-sin create mode 120000 srcpkgs/tesseract-ocr-srp_latn create mode 120000 srcpkgs/tesseract-ocr-syr create mode 120000 srcpkgs/tesseract-ocr-tgk create mode 120000 srcpkgs/tesseract-ocr-tir create mode 120000 srcpkgs/tesseract-ocr-uig create mode 120000 srcpkgs/tesseract-ocr-urd create mode 120000 srcpkgs/tesseract-ocr-uzb create mode 120000 srcpkgs/tesseract-ocr-uzb_cyrl create mode 120000 srcpkgs/tesseract-ocr-yid diff --git a/srcpkgs/tesseract-ocr-epo_alt b/srcpkgs/tesseract-ocr-amh similarity index 100% rename from srcpkgs/tesseract-ocr-epo_alt rename to srcpkgs/tesseract-ocr-amh diff --git a/srcpkgs/tesseract-ocr-ipa_old b/srcpkgs/tesseract-ocr-asm similarity index 100% rename from srcpkgs/tesseract-ocr-ipa_old rename to srcpkgs/tesseract-ocr-asm diff --git a/srcpkgs/tesseract-ocr-aze_cyrl b/srcpkgs/tesseract-ocr-aze_cyrl new file mode 120000 index 0000000000..79bcf15f05 --- /dev/null +++ b/srcpkgs/tesseract-ocr-aze_cyrl @@ -0,0 +1 @@ +tesseract-ocr \ No newline at end of file diff --git a/srcpkgs/tesseract-ocr-bod b/srcpkgs/tesseract-ocr-bod new file mode 120000 index 0000000000..79bcf15f05 --- /dev/null +++ b/srcpkgs/tesseract-ocr-bod @@ -0,0 +1 @@ +tesseract-ocr \ No newline at end of file diff --git a/srcpkgs/tesseract-ocr-bos b/srcpkgs/tesseract-ocr-bos new file mode 120000 index 0000000000..79bcf15f05 --- /dev/null +++ b/srcpkgs/tesseract-ocr-bos @@ -0,0 +1 @@ +tesseract-ocr \ No newline at end of file diff --git a/srcpkgs/tesseract-ocr-ceb b/srcpkgs/tesseract-ocr-ceb new file mode 120000 index 0000000000..79bcf15f05 --- /dev/null +++ b/srcpkgs/tesseract-ocr-ceb @@ -0,0 +1 @@ +tesseract-ocr \ No newline at end of file diff --git a/srcpkgs/tesseract-ocr-cym b/srcpkgs/tesseract-ocr-cym new file mode 120000 index 0000000000..79bcf15f05 --- /dev/null +++ b/srcpkgs/tesseract-ocr-cym @@ -0,0 +1 @@ +tesseract-ocr \ No newline at end of file diff --git a/srcpkgs/tesseract-ocr-dzo b/srcpkgs/tesseract-ocr-dzo new file mode 120000 index 0000000000..79bcf15f05 --- /dev/null +++ b/srcpkgs/tesseract-ocr-dzo @@ -0,0 +1 @@ +tesseract-ocr \ No newline at end of file diff --git a/srcpkgs/tesseract-ocr-fas b/srcpkgs/tesseract-ocr-fas new file mode 120000 index 0000000000..79bcf15f05 --- /dev/null +++ b/srcpkgs/tesseract-ocr-fas @@ -0,0 +1 @@ +tesseract-ocr \ No newline at end of file diff --git a/srcpkgs/tesseract-ocr-gle b/srcpkgs/tesseract-ocr-gle new file mode 120000 index 0000000000..79bcf15f05 --- /dev/null +++ b/srcpkgs/tesseract-ocr-gle @@ -0,0 +1 @@ +tesseract-ocr \ No newline at end of file diff --git a/srcpkgs/tesseract-ocr-guj b/srcpkgs/tesseract-ocr-guj new file mode 120000 index 0000000000..79bcf15f05 --- /dev/null +++ b/srcpkgs/tesseract-ocr-guj @@ -0,0 +1 @@ +tesseract-ocr \ No newline at end of file diff --git a/srcpkgs/tesseract-ocr-hat b/srcpkgs/tesseract-ocr-hat new file mode 120000 index 0000000000..79bcf15f05 --- /dev/null +++ b/srcpkgs/tesseract-ocr-hat @@ -0,0 +1 @@ +tesseract-ocr \ No newline at end of file diff --git a/srcpkgs/tesseract-ocr-iku b/srcpkgs/tesseract-ocr-iku new file mode 120000 index 0000000000..79bcf15f05 --- /dev/null +++ b/srcpkgs/tesseract-ocr-iku @@ -0,0 +1 @@ +tesseract-ocr \ No newline at end of file diff --git a/srcpkgs/tesseract-ocr-jav b/srcpkgs/tesseract-ocr-jav new file mode 120000 index 0000000000..79bcf15f05 --- /dev/null +++ b/srcpkgs/tesseract-ocr-jav @@ -0,0 +1 @@ +tesseract-ocr \ No newline at end of file diff --git a/srcpkgs/tesseract-ocr-kat b/srcpkgs/tesseract-ocr-kat new file mode 120000 index 0000000000..79bcf15f05 --- /dev/null +++ b/srcpkgs/tesseract-ocr-kat @@ -0,0 +1 @@ +tesseract-ocr \ No newline at end of file diff --git a/srcpkgs/tesseract-ocr-kat_old b/srcpkgs/tesseract-ocr-kat_old new file mode 120000 index 0000000000..79bcf15f05 --- /dev/null +++ b/srcpkgs/tesseract-ocr-kat_old @@ -0,0 +1 @@ +tesseract-ocr \ No newline at end of file diff --git a/srcpkgs/tesseract-ocr-kaz b/srcpkgs/tesseract-ocr-kaz new file mode 120000 index 0000000000..79bcf15f05 --- /dev/null +++ b/srcpkgs/tesseract-ocr-kaz @@ -0,0 +1 @@ +tesseract-ocr \ No newline at end of file diff --git a/srcpkgs/tesseract-ocr-khm b/srcpkgs/tesseract-ocr-khm new file mode 120000 index 0000000000..79bcf15f05 --- /dev/null +++ b/srcpkgs/tesseract-ocr-khm @@ -0,0 +1 @@ +tesseract-ocr \ No newline at end of file diff --git a/srcpkgs/tesseract-ocr-kir b/srcpkgs/tesseract-ocr-kir new file mode 120000 index 0000000000..79bcf15f05 --- /dev/null +++ b/srcpkgs/tesseract-ocr-kir @@ -0,0 +1 @@ +tesseract-ocr \ No newline at end of file diff --git a/srcpkgs/tesseract-ocr-kur b/srcpkgs/tesseract-ocr-kur new file mode 120000 index 0000000000..79bcf15f05 --- /dev/null +++ b/srcpkgs/tesseract-ocr-kur @@ -0,0 +1 @@ +tesseract-ocr \ No newline at end of file diff --git a/srcpkgs/tesseract-ocr-lao b/srcpkgs/tesseract-ocr-lao new file mode 120000 index 0000000000..79bcf15f05 --- /dev/null +++ b/srcpkgs/tesseract-ocr-lao @@ -0,0 +1 @@ +tesseract-ocr \ No newline at end of file diff --git a/srcpkgs/tesseract-ocr-lat b/srcpkgs/tesseract-ocr-lat new file mode 120000 index 0000000000..79bcf15f05 --- /dev/null +++ b/srcpkgs/tesseract-ocr-lat @@ -0,0 +1 @@ +tesseract-ocr \ No newline at end of file diff --git a/srcpkgs/tesseract-ocr-mar b/srcpkgs/tesseract-ocr-mar new file mode 120000 index 0000000000..79bcf15f05 --- /dev/null +++ b/srcpkgs/tesseract-ocr-mar @@ -0,0 +1 @@ +tesseract-ocr \ No newline at end of file diff --git a/srcpkgs/tesseract-ocr-mya b/srcpkgs/tesseract-ocr-mya new file mode 120000 index 0000000000..79bcf15f05 --- /dev/null +++ b/srcpkgs/tesseract-ocr-mya @@ -0,0 +1 @@ +tesseract-ocr \ No newline at end of file diff --git a/srcpkgs/tesseract-ocr-nep b/srcpkgs/tesseract-ocr-nep new file mode 120000 index 0000000000..79bcf15f05 --- /dev/null +++ b/srcpkgs/tesseract-ocr-nep @@ -0,0 +1 @@ +tesseract-ocr \ No newline at end of file diff --git a/srcpkgs/tesseract-ocr-ori b/srcpkgs/tesseract-ocr-ori new file mode 120000 index 0000000000..79bcf15f05 --- /dev/null +++ b/srcpkgs/tesseract-ocr-ori @@ -0,0 +1 @@ +tesseract-ocr \ No newline at end of file diff --git a/srcpkgs/tesseract-ocr-osd b/srcpkgs/tesseract-ocr-osd new file mode 120000 index 0000000000..79bcf15f05 --- /dev/null +++ b/srcpkgs/tesseract-ocr-osd @@ -0,0 +1 @@ +tesseract-ocr \ No newline at end of file diff --git a/srcpkgs/tesseract-ocr-pan b/srcpkgs/tesseract-ocr-pan new file mode 120000 index 0000000000..79bcf15f05 --- /dev/null +++ b/srcpkgs/tesseract-ocr-pan @@ -0,0 +1 @@ +tesseract-ocr \ No newline at end of file diff --git a/srcpkgs/tesseract-ocr-pus b/srcpkgs/tesseract-ocr-pus new file mode 120000 index 0000000000..79bcf15f05 --- /dev/null +++ b/srcpkgs/tesseract-ocr-pus @@ -0,0 +1 @@ +tesseract-ocr \ No newline at end of file diff --git a/srcpkgs/tesseract-ocr-san b/srcpkgs/tesseract-ocr-san new file mode 120000 index 0000000000..79bcf15f05 --- /dev/null +++ b/srcpkgs/tesseract-ocr-san @@ -0,0 +1 @@ +tesseract-ocr \ No newline at end of file diff --git a/srcpkgs/tesseract-ocr-sin b/srcpkgs/tesseract-ocr-sin new file mode 120000 index 0000000000..79bcf15f05 --- /dev/null +++ b/srcpkgs/tesseract-ocr-sin @@ -0,0 +1 @@ +tesseract-ocr \ No newline at end of file diff --git a/srcpkgs/tesseract-ocr-srp_latn b/srcpkgs/tesseract-ocr-srp_latn new file mode 120000 index 0000000000..79bcf15f05 --- /dev/null +++ b/srcpkgs/tesseract-ocr-srp_latn @@ -0,0 +1 @@ +tesseract-ocr \ No newline at end of file diff --git a/srcpkgs/tesseract-ocr-syr b/srcpkgs/tesseract-ocr-syr new file mode 120000 index 0000000000..79bcf15f05 --- /dev/null +++ b/srcpkgs/tesseract-ocr-syr @@ -0,0 +1 @@ +tesseract-ocr \ No newline at end of file diff --git a/srcpkgs/tesseract-ocr-tgk b/srcpkgs/tesseract-ocr-tgk new file mode 120000 index 0000000000..79bcf15f05 --- /dev/null +++ b/srcpkgs/tesseract-ocr-tgk @@ -0,0 +1 @@ +tesseract-ocr \ No newline at end of file diff --git a/srcpkgs/tesseract-ocr-tir b/srcpkgs/tesseract-ocr-tir new file mode 120000 index 0000000000..79bcf15f05 --- /dev/null +++ b/srcpkgs/tesseract-ocr-tir @@ -0,0 +1 @@ +tesseract-ocr \ No newline at end of file diff --git a/srcpkgs/tesseract-ocr-uig b/srcpkgs/tesseract-ocr-uig new file mode 120000 index 0000000000..79bcf15f05 --- /dev/null +++ b/srcpkgs/tesseract-ocr-uig @@ -0,0 +1 @@ +tesseract-ocr \ No newline at end of file diff --git a/srcpkgs/tesseract-ocr-urd b/srcpkgs/tesseract-ocr-urd new file mode 120000 index 0000000000..79bcf15f05 --- /dev/null +++ b/srcpkgs/tesseract-ocr-urd @@ -0,0 +1 @@ +tesseract-ocr \ No newline at end of file diff --git a/srcpkgs/tesseract-ocr-uzb b/srcpkgs/tesseract-ocr-uzb new file mode 120000 index 0000000000..79bcf15f05 --- /dev/null +++ b/srcpkgs/tesseract-ocr-uzb @@ -0,0 +1 @@ +tesseract-ocr \ No newline at end of file diff --git a/srcpkgs/tesseract-ocr-uzb_cyrl b/srcpkgs/tesseract-ocr-uzb_cyrl new file mode 120000 index 0000000000..79bcf15f05 --- /dev/null +++ b/srcpkgs/tesseract-ocr-uzb_cyrl @@ -0,0 +1 @@ +tesseract-ocr \ No newline at end of file diff --git a/srcpkgs/tesseract-ocr-yid b/srcpkgs/tesseract-ocr-yid new file mode 120000 index 0000000000..79bcf15f05 --- /dev/null +++ b/srcpkgs/tesseract-ocr-yid @@ -0,0 +1 @@ +tesseract-ocr \ No newline at end of file diff --git a/srcpkgs/tesseract-ocr/template b/srcpkgs/tesseract-ocr/template index 79cac5f03f..7fac2a1a42 100644 --- a/srcpkgs/tesseract-ocr/template +++ b/srcpkgs/tesseract-ocr/template @@ -1,154 +1,51 @@ # Template file for 'tesseract-ocr' pkgname=tesseract-ocr -version=3.02.02 -revision=2 -wrksrc=$pkgname +version=3.04.00 +revision=1 +wrksrc=tesseract-${version} +_tessdata_ver=074c37215b01ab8cc47a0e06ff7356383883d775 build_style=gnu-configure configure_args="LIBLEPT_HEADERSDIR=${XBPS_CROSS_BASE}/usr/include" -hostmakedepends="automake libtool leptonica" +hostmakedepends="automake libtool leptonica unzip" makedepends="pango-devel leptonica-devel" short_desc="Tesseract Open Source OCR engine" maintainer="Jürgen Buchmüller " license="Apache-2.0" -homepage="https://code.google.com/p/tesseract-ocr/" -_distsite="https://${pkgname}.googlecode.com/files" -distfiles="${_distsite}/${pkgname}-${version}.tar.gz - ${_distsite}/${pkgname}-${version%.*}.afr.tar.gz - ${_distsite}/${pkgname}-${version%.*}.ara.tar.gz - ${_distsite}/${pkgname}-${version%.*}.aze.tar.gz - ${_distsite}/${pkgname}-${version%.*}.bel.tar.gz - ${_distsite}/${pkgname}-${version%.*}.ben.tar.gz - ${_distsite}/${pkgname}-${version%.*}.bul.tar.gz - ${_distsite}/${pkgname}-${version%.*}.cat.tar.gz - ${_distsite}/${pkgname}-${version%.*}.ces.tar.gz - ${_distsite}/${pkgname}-${version%.*}.chi_sim.tar.gz - ${_distsite}/${pkgname}-${version%.*}.chi_tra.tar.gz - ${_distsite}/${pkgname}-${version%.*}.chr.tar.gz - ${_distsite}/${pkgname}-${version%.*}.dan.tar.gz - ${_distsite}/${pkgname}-${version%.*}.deu.tar.gz - ${_distsite}/${pkgname}-${version%.*}.ell.tar.gz - ${_distsite}/${pkgname}-${version%.*}.eng.tar.gz - ${_distsite}/${pkgname}-${version%.*}.enm.tar.gz - ${_distsite}/${pkgname}-${version%.*}.epo.tar.gz - ${_distsite}/${pkgname}-${version%.*}.epo_alt.tar.gz - ${_distsite}/${pkgname}-${version%.*}.equ.tar.gz - ${_distsite}/${pkgname}-${version%.*}.est.tar.gz - ${_distsite}/${pkgname}-${version%.*}.eus.tar.gz - ${_distsite}/${pkgname}-${version%.*}.fin.tar.gz - ${_distsite}/${pkgname}-${version%.*}.fra.tar.gz - ${_distsite}/${pkgname}-${version%.*}.frk.tar.gz - ${_distsite}/${pkgname}-${version%.*}.frm.tar.gz - ${_distsite}/${pkgname}-${version%.*}.glg.tar.gz - ${_distsite}/${pkgname}-${version%.*}.grc.tar.gz - ${_distsite}/${pkgname}-${version%.*}.heb.tar.gz - ${_distsite}/${pkgname}-${version%.*}.hin.tar.gz - ${_distsite}/${pkgname}-${version%.*}.hrv.tar.gz - ${_distsite}/${pkgname}-${version%.*}.hun.tar.gz - ${_distsite}/${pkgname}-${version%.*}.ind.tar.gz - ${_distsite}/${pkgname}-${version%.*}.isl.tar.gz - ${_distsite}/${pkgname}-${version%.*}.ita.tar.gz - ${_distsite}/${pkgname}-${version%.*}.ita_old.tar.gz - ${_distsite}/${pkgname}-${version%.*}.jpn.tar.gz - ${_distsite}/${pkgname}-${version%.*}.kan.tar.gz - ${_distsite}/${pkgname}-${version%.*}.kor.tar.gz - ${_distsite}/${pkgname}-${version%.*}.lav.tar.gz - ${_distsite}/${pkgname}-${version%.*}.lit.tar.gz - ${_distsite}/${pkgname}-${version%.*}.mal.tar.gz - ${_distsite}/${pkgname}-${version%.*}.mkd.tar.gz - ${_distsite}/${pkgname}-${version%.*}.mlt.tar.gz - ${_distsite}/${pkgname}-${version%.*}.msa.tar.gz - ${_distsite}/${pkgname}-${version%.*}.nld.tar.gz - ${_distsite}/${pkgname}-${version%.*}.nor.tar.gz - ${_distsite}/${pkgname}-${version%.*}.pol.tar.gz - ${_distsite}/${pkgname}-${version%.*}.por.tar.gz - ${_distsite}/${pkgname}-${version%.*}.ron.tar.gz - ${_distsite}/${pkgname}-${version%.*}.rus.tar.gz - ${_distsite}/${pkgname}-${version%.*}.slk.tar.gz - ${_distsite}/${pkgname}-${version%.*}.slv.tar.gz - ${_distsite}/${pkgname}-${version%.*}.spa.tar.gz - ${_distsite}/${pkgname}-${version%.*}.spa_old.tar.gz - ${_distsite}/${pkgname}-${version%.*}.sqi.tar.gz - ${_distsite}/${pkgname}-${version%.*}.srp.tar.gz - ${_distsite}/${pkgname}-${version%.*}.swa.tar.gz - ${_distsite}/${pkgname}-${version%.*}.swe.tar.gz - ${_distsite}/${pkgname}-${version%.*}.tam.tar.gz - ${_distsite}/${pkgname}-${version%.*}.tel.tar.gz - ${_distsite}/${pkgname}-${version%.*}.tgl.tar.gz - ${_distsite}/${pkgname}-${version%.*}.tha.tar.gz - ${_distsite}/${pkgname}-${version%.*}.tur.tar.gz - ${_distsite}/${pkgname}-${version%.*}.ukr.tar.gz - ${_distsite}/${pkgname}-${version%.*}.vie.tar.gz" +homepage="https://github.com/tesseract-ocr/tesseract" +distfiles="https://github.com/tesseract-ocr/tesseract/archive/${version}.tar.gz>${pkgname}-${version}.tar.gz + https://github.com/tesseract-ocr/tessdata/archive/${_tessdata_ver}.zip>tessdata-${_tessdata_ver}.zip" +checksum="7e6e48b625e1fba9bc825a4ef8c39f12c60aae1084939133b3c6a00f8f8dc38c + c5a4e83a593314a70fd79c4ec911cb614737d86cbfc813ef56f19616fedbb559" -checksum="26cd39cb3f2a6f6f1bf4050d1cc0aae35edee49eb49a92df3cb7f9487caa013d - 371399ce6700f28d04ccfc12e421f315e356e3aa26575b27d06083c06987784d - 2c7be319c30e93950c121897969c1bc1eb1d6bdceb75f1184ee34a6f01d66b6a - 0f17a06a163d97ec23db3ab14b91b84a67aeba1e441ca5e53a8632b2110a0e79 - e59e008c542f786f6f7bd14c6608b2c128c9297d6bede647ae357f7421f7a3e7 - 14a87e0762dcee0cd95acfd3b370b81fd14a003d39328ed97db0b28c55d31e50 - 1b8b4d7b12d896cf9f7e60e8e3274d3891886544253d41681dd9b32d6567e3f3 - 894af4c718e821cdc4ae3ec65838b174ac8a003e5417a08557698e1576ac3a34 - 843522eddcd0e2059a1c7069183b68c2459d527157bc47833a79b6ff56bb09de - f5b196b5bea6917bcbbf15131b4c2afe94d34c2d9e21d08c0ca42dfbe5aa1095 - 78742e273a9ca74a6ab5543414e04bcac90d03a317dd35edc634956beafa3d20 - 27c917ba39898d63752b2a4ecb0cd8f688772bcbbae2bf430a93d894d328a4c1 - deb93f6326aa8a4d353159201681947a808577662084d4060daea7d644e63eb9 - d03cdd0b00d368ff49ebaf77b8758bcf2ff1b0d39331368987e622ac261443ca - 29745ced8fbfb4ec9abebeb99e4b385821cb5eb0ed81fb1870b93543553b8fba - c110029560e7f6d41cb852ca23b66899daa4456d9afeeae9d062204bd271bdf8 - 19c9bd89c823451655e3f265b7fcd06727cd36ddec01b8fad9900159b688a1e3 - 22ae681c34ee7aa825994115f927c2e1f8ec1a98c97c01218b98d2549af22252 - e516b8362fa060be720d2768a8abbee9cc965b9162249c5914ef1d8159e03dc2 - 2010e724686171ef2eb3388df00d8d89ba7e50cb2298b0368b847fffb95d804e - d5d6b9d4b567a10e2f63cafd2f60bf5b0c994e415470becafd729b20349e2e80 - 78359d57896623cf8211e17604a9dfa574e2253c9157035f439c5fbe06cd5019 - e02ff1798960d3af15c0dafafac0de954442cfb13f4eff45c3263c2ff6e59026 - 74592f5f2ab73a6668934922753be0505fc4333ee790543949f8b70f03eab101 - a9f4219d6b2ef4ed8b76c86be99ae3c9190509df72ba6f0217a77f7205ec52f8 - f32f774d88e7936f16ff41b832cecfbd71f82c9bf7584330d750da941c07ca79 - 82ffa27c4de17545fa9d46e0fcd5690b1b59bcce9e93f71c0a41d19afbe869ee - 586b955eb9fba5a304cfa37bfdd7c89f2db33335d5ae83f2962aed8903266805 - da47b0cfe241775c9b36339efda6339d59e146fa6143c65a2253eb9f67164811 - 91f91da5adc73ee71150865d6598df8a50424350480df2753ca9035320b3c78d - e20575f5b0ec73ff7f3197c112a8dcc24303b64016910399d9127bda42e7d866 - edf5cc42b516b2a18681955167d1964dfc7ff8cda642408ebda91b3c4656f9f1 - 337ba4400a798c60dee16070071337c96fc67bcb4e2cc1b4676dcbc340fbbcd7 - 6b226366d8d2d87f859d4099e8b715e3ec3890f9317198e7b8c80fba001055f8 - 26453b302c108e08f594c7a19597382314529f648e141805417f9af1e4c99ac2 - caf591be6d4eda9e7627397c3c520d58115c660002ecace680749504348ba104 - 09bf447a29e990c065024b3b720fd70f08d596a7be534312fc9e47d0aabf681f - 15851cc22058c08cad9ec6058113f76966409061f21f5cde8c9cc1d214298c22 - 7c85c4107a781d90d6d4adb001f2189b113f9db6942618b4bc47f4cc80cd126a - e6a190ee1edf0a58948a9d7b01569fd8a4c05bc678da3a40ad884c0849958c36 - 350891a182076df2e8067da04b3b2127a77e48782d9905e8339db4f1d6c7a729 - 72b3b23979ae4a6b63518964bf239beae8bb6c02f35a2695f47262178b3fef34 - ea489277e7a588a1b7566a21cbbd647786f16659cae087a4705d4fdabd823ee6 - ba99e8bfc753a274bbea38ef44f5abf81e5f12d09f9d12d267436961270ef2de - f34e4950ad9079f92965a234253cc16f92deb66f1ce4e9c9a885ad2695c2d136 - 5e2e53499a05282968e5a9699aad66ae52a5abf06ae828e2f4cf2c1f6e674a98 - 6b5c42444595a81b5f6fea859d97999895917bcc2f85a505488ea5c2f4efa01a - 62999058bfb609d95d53bd519c6de99620d025b3bfbc54d8679a87b10474ccbb - f9b126323757c62da23aab163e2ce5257d137e86be7c37dea13bb0585e1ace3f - d7e6454c9cc80c84a654f94283fc06b2df33c5c7fd2d3bff269c3cbdeb0b39e7 - 091cda49489d15f33916263fc78fbf8dcd4e6547012dc7e1a8496a38ab192315 - cbd5a88e2188ef39ef438c9859dbd7a9b9e2a99c23a823ec310f7f84a012cc82 - b901507d2901c882f98f6ef5db07dbf74636fba6a1f616c5f094954106791667 - f40cc264d037b0c71ecb4a8bb6def8b3ec04b647d8da7fd44d0daa558bfa31b1 - 2b980c0eda1572423dd56260b32d748288028fdd45266311c4ab448fcbce5814 - 99bfcda3e0c471f63b36cd0db7dea596e59a2219c9275c3ba51e59973555c101 - b1eeeb2958d0a4e2ba16fb55a98ca4ca8e69fee8b0be8162ff599ba19d0b2404 - 2681e59f2a9333259a2de42f3deed46aa7dd84b638e6927f40db0409adff143b - ada287d7b64183df906215fe4ca86c3b6fe30dc5121e9a83113c3265ca7fc5ae - 75f73362421a23eb955212f7aa19c9a3efdc80a4c6761445869148bfd2a6dc62 - f36af3d5ca9f8ff6e606485fe5db835f96b42e7d2380ac5d61af6b41827834fd - 5c515310df83c9b40e557027e49de6df70e33a9bbabeaf1301ca9e8c13558948 - 7a98e25e0c61dda48cbdb241f0f53c3dfaa7ef574b81799ab2ddac50da6db4fb - fe4657ca3455585a06eb3d02b4a0472fda8ca06efe587be75e175662dc6329d7 - 7862b10c1ff7e02b41c7a50eec7fccd2c30b8162d965fa1ae00510c6d1210762 - a113254882eac70168aec00544805e7c9cec20527217b98349ed48f6e2d2611e" +# Create a package for one specific language $1 +pkg_lang() { + local f lang=$1 + vmkdir usr/share/tessdata + for f in $(find ${wrksrc}/tessdata -name "${lang}.*" -o -name "${lang}_frak.*"); do + vinstall $f 644 usr/share/tessdata + rm $f + done +} +post_extract() { + mv ${XBPS_BUILDDIR}/tessdata-${_tessdata_ver}/* ${wrksrc}/tessdata + rmdir ${XBPS_BUILDDIR}/tessdata-${_tessdata_ver} +} pre_configure() { cd ${wrksrc} + # Some include paths are not set in training/Makefile.am ? + sed -i training/Makefile.am \ + -e "/AM_CPPFLAGS += \\\\/a -I${XBPS_CROSS_BASE}/usr/include/glib-2.0 \\\\" \ + -e "/AM_CPPFLAGS += \\\\/a -I${XBPS_CROSS_BASE}/usr/lib/glib-2.0/include \\\\" \ + -e "/AM_CPPFLAGS += \\\\/a -I${XBPS_CROSS_BASE}/usr/include/pango-1.0 \\\\" \ + -e "/AM_CPPFLAGS += \\\\/a -I${XBPS_CROSS_BASE}/usr/include/cairo \\\\" \ + -e "/AM_CPPFLAGS += \\\\/a -I${XBPS_CROSS_BASE}/usr/include/freetype2 \\\\" ./autogen.sh + case "$XBPS_TARGET_MACHINE" in + *-musl) # Don't re-define off_t for musl libc + sed -i ${wrksrc}/ccutil/scanutils.cpp \ + -e "/typedef long off_t;/d" + esac } post_install() { # Rename binary to avoid conflict with tesseract package @@ -156,22 +53,32 @@ post_install() { mv ${DESTDIR}/usr/share/man/man1/tesseract{,-ocr}.1 vdoc ChangeLog vdoc README - vdoc eurotext.tif - vdoc phototest.tif + vdoc testing/eurotext.tif + vdoc testing/phototest.tif } tesseract-ocr-tools_package() { - depends="tesseract-ocr>=${version}_${revision}" + depends="${sourcepkg}>=${version}_${revision}" short_desc+=" - Tools (development)" pkg_install() { local f + make -C training DESTDIR=${DESTDIR} install vmkdir usr/share/tesseract vmkdir usr/share/man/man1 vmkdir usr/share/man/man5 + # Copy shell scripts + for f in language-specific.sh tesstrain.sh tesstrain_utils.sh; do + if [ -e ${wrksrc}/training/${f} ]; then + cp -a ${wrksrc}/training/${f} \ + ${PKGDESTDIR}/usr/share/tesseract + fi + done + # Move binaries and manual pages for f in ambiguous_words classifier_tester cntraining combine_tessdata \ - dawg2wordlist mftraining shapeclustering unicharambigs unicharset \ + dawg2wordlist mftraining set_unicharset_properties \ + shapeclustering text2image unicharambigs unicharset \ unicharset_extractor wordlist2dawg; do if [ -e ${DESTDIR}/usr/bin/${f} ]; then - mv ${DESTDIR}/usr/bin/$f \ + mv ${DESTDIR}/usr/bin/${f} \ ${PKGDESTDIR}/usr/share/tesseract fi for n in 1 5; do @@ -184,8 +91,8 @@ tesseract-ocr-tools_package() { } } tesseract-ocr-devel_package() { - depends="tesseract-ocr>=${version}_${revision}" - short_desc+=" - Development files" + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - development files" pkg_install() { vmove usr/include/tesseract vmove usr/lib/pkgconfig @@ -196,9 +103,9 @@ tesseract-ocr-devel_package() { tesseract-ocr-basic_package() { local lang noarch=yes - depends="tesseract-ocr>=${version}_${revision}" - conflics="tesseract-ocr-all>=0" - short_desc+=" - Basic languages data" + depends="${sourcepkg}>=${version}_${revision}" + conflicts="tesseract-ocr-all>=0" + short_desc+=" - basic languages data" # A number of basic (mostly European) languages for lang in bel dan deu eng equ fin fra hun ita nld nor pol por rus spa swe tur; do depends+=" tesseract-ocr-${lang}>=${version}_${revision}" @@ -207,861 +114,850 @@ tesseract-ocr-basic_package() { tesseract-ocr-all_package() { local lang noarch=yes - depends="tesseract-ocr>=${version}_${revision}" - conflics="tesseract-ocr-basic>=0" - short_desc+=" - All languages data" - # All available languages - for lang in afr ara aze bel ben bul cat ces chi_sim chi_tra \ - chr dan deu ell eng enm epo epo_alt equ est eus frk \ - fin fra 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; do + depends="${sourcepkg}>=${version}_${revision}" + conflicts="tesseract-ocr-basic>=0" + short_desc+=" - all languages data" + # All aVailable languages + for lang in afr amh ara asm aze aze_cyrl bel ben bod bos bul cat ceb \ + ces chi_sim chi_tra chr cym dan deu dzo ell eng enm epo equ est eus \ + fas fin fra frk frm gle glg grc guj hat heb hin hrv hun iku ind isl ita \ + ita_old jav jpn kan kat kat_old kaz khm kir kor kur lao lat lav lit mal mar \ + mkd mlt msa mya nep nld nor ori osd pan pol por pus ron rus san sin slk slv \ + spa spa_old sqi srp srp_latn swa swe syr tam tel tgk tgl tha tir tur \ + uig ukr urd uzb uzb_cyrl vie yid; do depends+=" tesseract-ocr-${lang}>=${version}_${revision}" done } tesseract-ocr-afr_package() { noarch=yes - depends="tesseract-ocr>=${version}_${revision}" + depends="${sourcepkg}>=${version}_${revision}" short_desc+=" - Afrikaans language data" pkg_install() { - local f lang=${pkgname#tesseract-ocr-} - vmkdir usr/share/tessdata - for f in $(find ${wrksrc}/tessdata -name "${lang}.*" -o -name "${lang}-frak.*"); do - vinstall $f 644 usr/share/tessdata - rm $f - done + $(pkg_lang ${pkgname#tesseract-ocr-}) + } +} +tesseract-ocr-amh_package() { + noarch=yes + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - Amharic language data" + pkg_install() { + $(pkg_lang ${pkgname#tesseract-ocr-}) } } tesseract-ocr-ara_package() { noarch=yes - depends="tesseract-ocr>=${version}_${revision}" + depends="${sourcepkg}>=${version}_${revision}" short_desc+=" - Arabic language data" pkg_install() { - local f lang=${pkgname#tesseract-ocr-} - vmkdir usr/share/tessdata - for f in $(find ${wrksrc}/tessdata -name "${lang}.*" -o -name "${lang}-frak.*"); do - vinstall $f 644 usr/share/tessdata - rm $f - done + $(pkg_lang ${pkgname#tesseract-ocr-}) + } +} +tesseract-ocr-asm_package() { + noarch=yes + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - Assamese language data" + pkg_install() { + $(pkg_lang ${pkgname#tesseract-ocr-}) } } tesseract-ocr-aze_package() { noarch=yes - depends="tesseract-ocr>=${version}_${revision}" + depends="${sourcepkg}>=${version}_${revision}" short_desc+=" - Azerbaijani language data" pkg_install() { - local f lang=${pkgname#tesseract-ocr-} - vmkdir usr/share/tessdata - for f in $(find ${wrksrc}/tessdata -name "${lang}.*" -o -name "${lang}-frak.*"); do - vinstall $f 644 usr/share/tessdata - rm $f - done + $(pkg_lang ${pkgname#tesseract-ocr-}) + } +} +tesseract-ocr-aze_cyrl_package() { + noarch=yes + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - Azerbaijani (cyrillic) language data" + pkg_install() { + $(pkg_lang ${pkgname#tesseract-ocr-}) } } tesseract-ocr-bel_package() { noarch=yes - depends="tesseract-ocr>=${version}_${revision}" + depends="${sourcepkg}>=${version}_${revision}" short_desc+=" - Belarusian language data" pkg_install() { - local f lang=${pkgname#tesseract-ocr-} - vmkdir usr/share/tessdata - for f in $(find ${wrksrc}/tessdata -name "${lang}.*" -o -name "${lang}-frak.*"); do - vinstall $f 644 usr/share/tessdata - rm $f - done + $(pkg_lang ${pkgname#tesseract-ocr-}) } } tesseract-ocr-ben_package() { noarch=yes - depends="tesseract-ocr>=${version}_${revision}" + depends="${sourcepkg}>=${version}_${revision}" short_desc+=" - Bengali language data" pkg_install() { - local f lang=${pkgname#tesseract-ocr-} - vmkdir usr/share/tessdata - for f in $(find ${wrksrc}/tessdata -name "${lang}.*" -o -name "${lang}-frak.*"); do - vinstall $f 644 usr/share/tessdata - rm $f - done + $(pkg_lang ${pkgname#tesseract-ocr-}) + } +} +tesseract-ocr-bod_package() { + noarch=yes + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - Tibetan language data" + pkg_install() { + $(pkg_lang ${pkgname#tesseract-ocr-}) + } +} +tesseract-ocr-bos_package() { + noarch=yes + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - Bosnian language data" + pkg_install() { + $(pkg_lang ${pkgname#tesseract-ocr-}) } } tesseract-ocr-bul_package() { noarch=yes - depends="tesseract-ocr>=${version}_${revision}" + depends="${sourcepkg}>=${version}_${revision}" short_desc+=" - Bulgarian language data" pkg_install() { - local f lang=${pkgname#tesseract-ocr-} - vmkdir usr/share/tessdata - for f in $(find ${wrksrc}/tessdata -name "${lang}.*" -o -name "${lang}-frak.*"); do - vinstall $f 644 usr/share/tessdata - rm $f - done + $(pkg_lang ${pkgname#tesseract-ocr-}) } } tesseract-ocr-cat_package() { noarch=yes - depends="tesseract-ocr>=${version}_${revision}" + depends="${sourcepkg}>=${version}_${revision}" short_desc+=" - Catalan language data" pkg_install() { - local f lang=${pkgname#tesseract-ocr-} - vmkdir usr/share/tessdata - for f in $(find ${wrksrc}/tessdata -name "${lang}.*" -o -name "${lang}-frak.*"); do - vinstall $f 644 usr/share/tessdata - rm $f - done + $(pkg_lang ${pkgname#tesseract-ocr-}) + } +} +tesseract-ocr-ceb_package() { + noarch=yes + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - Cebuano language data" + pkg_install() { + $(pkg_lang ${pkgname#tesseract-ocr-}) } } tesseract-ocr-ces_package() { noarch=yes - depends="tesseract-ocr>=${version}_${revision}" + depends="${sourcepkg}>=${version}_${revision}" short_desc+=" - Czech language data" pkg_install() { - local f lang=${pkgname#tesseract-ocr-} - vmkdir usr/share/tessdata - for f in $(find ${wrksrc}/tessdata -name "${lang}.*" -o -name "${lang}-frak.*"); do - vinstall $f 644 usr/share/tessdata - rm $f - done + $(pkg_lang ${pkgname#tesseract-ocr-}) } } tesseract-ocr-chi_sim_package() { noarch=yes - depends="tesseract-ocr>=${version}_${revision}" + depends="${sourcepkg}>=${version}_${revision}" short_desc+=" - Chinese (Simplified) language data" pkg_install() { - local f lang=${pkgname#tesseract-ocr-} - vmkdir usr/share/tessdata - for f in $(find ${wrksrc}/tessdata -name "${lang}.*" -o -name "${lang}-frak.*"); do - vinstall $f 644 usr/share/tessdata - rm $f - done + $(pkg_lang ${pkgname#tesseract-ocr-}) } } tesseract-ocr-chi_tra_package() { noarch=yes - depends="tesseract-ocr>=${version}_${revision}" + depends="${sourcepkg}>=${version}_${revision}" short_desc+=" - Chinese (Traditional) language data" pkg_install() { - local f lang=${pkgname#tesseract-ocr-} - vmkdir usr/share/tessdata - for f in $(find ${wrksrc}/tessdata -name "${lang}.*" -o -name "${lang}-frak.*"); do - vinstall $f 644 usr/share/tessdata - rm $f - done + $(pkg_lang ${pkgname#tesseract-ocr-}) } } tesseract-ocr-chr_package() { noarch=yes - depends="tesseract-ocr>=${version}_${revision}" + depends="${sourcepkg}>=${version}_${revision}" short_desc+=" - Cherokee language data" pkg_install() { - local f lang=${pkgname#tesseract-ocr-} - vmkdir usr/share/tessdata - for f in $(find ${wrksrc}/tessdata -name "${lang}.*" -o -name "${lang}-frak.*"); do - vinstall $f 644 usr/share/tessdata - rm $f - done + $(pkg_lang ${pkgname#tesseract-ocr-}) + } +} +tesseract-ocr-cym_package() { + noarch=yes + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - Welsh language data" + pkg_install() { + $(pkg_lang ${pkgname#tesseract-ocr-}) } } tesseract-ocr-dan_package() { noarch=yes - depends="tesseract-ocr>=${version}_${revision}" + depends="${sourcepkg}>=${version}_${revision}" short_desc+=" - Danish language data" pkg_install() { - local f lang=${pkgname#tesseract-ocr-} - vmkdir usr/share/tessdata - for f in $(find ${wrksrc}/tessdata -name "${lang}.*" -o -name "${lang}-frak.*"); do - vinstall $f 644 usr/share/tessdata - rm $f - done + $(pkg_lang ${pkgname#tesseract-ocr-}) } } tesseract-ocr-deu_package() { noarch=yes - depends="tesseract-ocr>=${version}_${revision}" + depends="${sourcepkg}>=${version}_${revision}" short_desc+=" - German language data" pkg_install() { - local f lang=${pkgname#tesseract-ocr-} - vmkdir usr/share/tessdata - for f in $(find ${wrksrc}/tessdata -name "${lang}.*" -o -name "${lang}-frak.*"); do - vinstall $f 644 usr/share/tessdata - rm $f - done + $(pkg_lang ${pkgname#tesseract-ocr-}) + } +} +tesseract-ocr-dzo_package() { + noarch=yes + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - Dzongkha language data" + pkg_install() { + $(pkg_lang ${pkgname#tesseract-ocr-}) } } tesseract-ocr-ell_package() { noarch=yes - depends="tesseract-ocr>=${version}_${revision}" + depends="${sourcepkg}>=${version}_${revision}" short_desc+=" - Greek language data" pkg_install() { - local f lang=${pkgname#tesseract-ocr-} - vmkdir usr/share/tessdata - for f in $(find ${wrksrc}/tessdata -name "${lang}.*" -o -name "${lang}-frak.*"); do - vinstall $f 644 usr/share/tessdata - rm $f - done + $(pkg_lang ${pkgname#tesseract-ocr-}) } } tesseract-ocr-eng_package() { noarch=yes - depends="tesseract-ocr>=${version}_${revision}" + depends="${sourcepkg}>=${version}_${revision}" short_desc+=" - English language data" pkg_install() { - local f lang=${pkgname#tesseract-ocr-} - vmkdir usr/share/tessdata - for f in $(find ${wrksrc}/tessdata -name "${lang}.*" -o -name "${lang}-frak.*"); do - vinstall $f 644 usr/share/tessdata - rm $f - done + $(pkg_lang ${pkgname#tesseract-ocr-}) } } tesseract-ocr-enm_package() { noarch=yes - depends="tesseract-ocr>=${version}_${revision}" + depends="${sourcepkg}>=${version}_${revision}" short_desc+=" - Middle English (1100-1500) language data" pkg_install() { - local f lang=${pkgname#tesseract-ocr-} - vmkdir usr/share/tessdata - for f in $(find ${wrksrc}/tessdata -name "${lang}.*" -o -name "${lang}-frak.*"); do - vinstall $f 644 usr/share/tessdata - rm $f - done + $(pkg_lang ${pkgname#tesseract-ocr-}) } } tesseract-ocr-epo_package() { noarch=yes - depends="tesseract-ocr>=${version}_${revision}" + depends="${sourcepkg}>=${version}_${revision}" short_desc+=" - Esperanto language data" pkg_install() { - local f lang=${pkgname#tesseract-ocr-} - vmkdir usr/share/tessdata - for f in $(find ${wrksrc}/tessdata -name "${lang}.*" -o -name "${lang}-frak.*"); do - vinstall $f 644 usr/share/tessdata - rm $f - done - } -} -tesseract-ocr-epo_alt_package() { - noarch=yes - depends="tesseract-ocr>=${version}_${revision}" - short_desc+=" - Esperanto alternative language data" - pkg_install() { - local f lang=${pkgname#tesseract-ocr-} - vmkdir usr/share/tessdata - for f in $(find ${wrksrc}/tessdata -name "${lang}.*" -o -name "${lang}-frak.*"); do - vinstall $f 644 usr/share/tessdata - rm $f - done + $(pkg_lang ${pkgname#tesseract-ocr-}) } } tesseract-ocr-equ_package() { noarch=yes - depends="tesseract-ocr>=${version}_${revision}" + depends="${sourcepkg}>=${version}_${revision}" short_desc+=" - Math / equation detection module" pkg_install() { - local f lang=${pkgname#tesseract-ocr-} - vmkdir usr/share/tessdata - for f in $(find ${wrksrc}/tessdata -name "${lang}.*" -o -name "${lang}-frak.*"); do - vinstall $f 644 usr/share/tessdata - rm $f - done + $(pkg_lang ${pkgname#tesseract-ocr-}) } } tesseract-ocr-est_package() { noarch=yes - depends="tesseract-ocr>=${version}_${revision}" + depends="${sourcepkg}>=${version}_${revision}" short_desc+=" - Estonian language data" pkg_install() { - local f lang=${pkgname#tesseract-ocr-} - vmkdir usr/share/tessdata - for f in $(find ${wrksrc}/tessdata -name "${lang}.*" -o -name "${lang}-frak.*"); do - vinstall $f 644 usr/share/tessdata - rm $f - done + $(pkg_lang ${pkgname#tesseract-ocr-}) } } tesseract-ocr-eus_package() { noarch=yes - depends="tesseract-ocr>=${version}_${revision}" + depends="${sourcepkg}>=${version}_${revision}" short_desc+=" - Basque language data" pkg_install() { - local f lang=${pkgname#tesseract-ocr-} - vmkdir usr/share/tessdata - for f in $(find ${wrksrc}/tessdata -name "${lang}.*" -o -name "${lang}-frak.*"); do - vinstall $f 644 usr/share/tessdata - rm $f - done + $(pkg_lang ${pkgname#tesseract-ocr-}) + } +} +tesseract-ocr-fas_package() { + noarch=yes + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - Persian language data" + pkg_install() { + $(pkg_lang ${pkgname#tesseract-ocr-}) } } tesseract-ocr-fin_package() { noarch=yes - depends="tesseract-ocr>=${version}_${revision}" + depends="${sourcepkg}>=${version}_${revision}" short_desc+=" - Finnish language data" pkg_install() { - local f lang=${pkgname#tesseract-ocr-} - vmkdir usr/share/tessdata - for f in $(find ${wrksrc}/tessdata -name "${lang}.*" -o -name "${lang}-frak.*"); do - vinstall $f 644 usr/share/tessdata - rm $f - done + $(pkg_lang ${pkgname#tesseract-ocr-}) } } tesseract-ocr-fra_package() { noarch=yes - depends="tesseract-ocr>=${version}_${revision}" + depends="${sourcepkg}>=${version}_${revision}" short_desc+=" - French language data" pkg_install() { - local f lang=${pkgname#tesseract-ocr-} - vmkdir usr/share/tessdata - for f in $(find ${wrksrc}/tessdata -name "${lang}.*" -o -name "${lang}-frak.*"); do - vinstall $f 644 usr/share/tessdata - rm $f - done + $(pkg_lang ${pkgname#tesseract-ocr-}) } } tesseract-ocr-frk_package() { noarch=yes - depends="tesseract-ocr>=${version}_${revision}" + depends="${sourcepkg}>=${version}_${revision}" short_desc+=" - Frankish language data" pkg_install() { - local f lang=${pkgname#tesseract-ocr-} - vmkdir usr/share/tessdata - for f in $(find ${wrksrc}/tessdata -name "${lang}.*" -o -name "${lang}-frak.*"); do - vinstall $f 644 usr/share/tessdata - rm $f - done + $(pkg_lang ${pkgname#tesseract-ocr-}) } } tesseract-ocr-frm_package() { noarch=yes - depends="tesseract-ocr>=${version}_${revision}" + depends="${sourcepkg}>=${version}_${revision}" short_desc+=" - Middle French (ca. 1400-1600) language data" pkg_install() { - local f lang=${pkgname#tesseract-ocr-} - vmkdir usr/share/tessdata - for f in $(find ${wrksrc}/tessdata -name "${lang}.*" -o -name "${lang}-frak.*"); do - vinstall $f 644 usr/share/tessdata - rm $f - done + $(pkg_lang ${pkgname#tesseract-ocr-}) + } +} +tesseract-ocr-gle_package() { + noarch=yes + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - Irish language data" + pkg_install() { + $(pkg_lang ${pkgname#tesseract-ocr-}) } } tesseract-ocr-glg_package() { noarch=yes - depends="tesseract-ocr>=${version}_${revision}" + depends="${sourcepkg}>=${version}_${revision}" short_desc+=" - Galician language data" pkg_install() { - local f lang=${pkgname#tesseract-ocr-} - vmkdir usr/share/tessdata - for f in $(find ${wrksrc}/tessdata -name "${lang}.*" -o -name "${lang}-frak.*"); do - vinstall $f 644 usr/share/tessdata - rm $f - done + $(pkg_lang ${pkgname#tesseract-ocr-}) } } tesseract-ocr-grc_package() { noarch=yes - depends="tesseract-ocr>=${version}_${revision}" + depends="${sourcepkg}>=${version}_${revision}" short_desc+=" - Ancient Greek Language data" pkg_install() { - local f lang=${pkgname#tesseract-ocr-} - vmkdir usr/share/tessdata - for f in $(find ${wrksrc}/tessdata -name "${lang}.*" -o -name "${lang}-frak.*"); do - vinstall $f 644 usr/share/tessdata - rm $f - done + $(pkg_lang ${pkgname#tesseract-ocr-}) + } +} +tesseract-ocr-guj_package() { + noarch=yes + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - Gujarati Language data" + pkg_install() { + $(pkg_lang ${pkgname#tesseract-ocr-}) + } +} +tesseract-ocr-hat_package() { + noarch=yes + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - Haitian language data" + pkg_install() { + $(pkg_lang ${pkgname#tesseract-ocr-}) } } tesseract-ocr-heb_package() { noarch=yes - depends="tesseract-ocr>=${version}_${revision}" + depends="${sourcepkg}>=${version}_${revision}" short_desc+=" - Hebrew language data" pkg_install() { - local f lang=${pkgname#tesseract-ocr-} - vmkdir usr/share/tessdata - for f in $(find ${wrksrc}/tessdata -name "${lang}.*" -o -name "${lang}-frak.*"); do - vinstall $f 644 usr/share/tessdata - rm $f - done + $(pkg_lang ${pkgname#tesseract-ocr-}) } } tesseract-ocr-hin_package() { noarch=yes - depends="tesseract-ocr>=${version}_${revision}" + depends="${sourcepkg}>=${version}_${revision}" short_desc+=" - Hindi language data" pkg_install() { - local f lang=${pkgname#tesseract-ocr-} - vmkdir usr/share/tessdata - for f in $(find ${wrksrc}/tessdata -name "${lang}.*" -o -name "${lang}-frak.*"); do - vinstall $f 644 usr/share/tessdata - rm $f - done + $(pkg_lang ${pkgname#tesseract-ocr-}) } } tesseract-ocr-hrv_package() { noarch=yes - depends="tesseract-ocr>=${version}_${revision}" + depends="${sourcepkg}>=${version}_${revision}" short_desc+=" - Croatian language data" pkg_install() { - local f lang=${pkgname#tesseract-ocr-} - vmkdir usr/share/tessdata - for f in $(find ${wrksrc}/tessdata -name "${lang}.*" -o -name "${lang}-frak.*"); do - vinstall $f 644 usr/share/tessdata - rm $f - done + $(pkg_lang ${pkgname#tesseract-ocr-}) } } tesseract-ocr-hun_package() { noarch=yes - depends="tesseract-ocr>=${version}_${revision}" + depends="${sourcepkg}>=${version}_${revision}" short_desc+=" - Hungarian language data" pkg_install() { - local f lang=${pkgname#tesseract-ocr-} - vmkdir usr/share/tessdata - for f in $(find ${wrksrc}/tessdata -name "${lang}.*" -o -name "${lang}-frak.*"); do - vinstall $f 644 usr/share/tessdata - rm $f - done + $(pkg_lang ${pkgname#tesseract-ocr-}) + } +} +tesseract-ocr-iku_package() { + noarch=yes + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - Inuktitut language data" + pkg_install() { + $(pkg_lang ${pkgname#tesseract-ocr-}) } } tesseract-ocr-ind_package() { noarch=yes - depends="tesseract-ocr>=${version}_${revision}" + depends="${sourcepkg}>=${version}_${revision}" short_desc+=" - Indonesian language data" pkg_install() { - local f lang=${pkgname#tesseract-ocr-} - vmkdir usr/share/tessdata - for f in $(find ${wrksrc}/tessdata -name "${lang}.*" -o -name "${lang}-frak.*"); do - vinstall $f 644 usr/share/tessdata - rm $f - done + $(pkg_lang ${pkgname#tesseract-ocr-}) } } tesseract-ocr-isl_package() { noarch=yes - depends="tesseract-ocr>=${version}_${revision}" + depends="${sourcepkg}>=${version}_${revision}" short_desc+=" - Icelandic language data" pkg_install() { - local f lang=${pkgname#tesseract-ocr-} - vmkdir usr/share/tessdata - for f in $(find ${wrksrc}/tessdata -name "${lang}.*" -o -name "${lang}-frak.*"); do - vinstall $f 644 usr/share/tessdata - rm $f - done + $(pkg_lang ${pkgname#tesseract-ocr-}) } } tesseract-ocr-ita_package() { noarch=yes - depends="tesseract-ocr>=${version}_${revision}" + depends="${sourcepkg}>=${version}_${revision}" short_desc+=" - Italian language data" pkg_install() { - local f lang=${pkgname#tesseract-ocr-} - vmkdir usr/share/tessdata - for f in $(find ${wrksrc}/tessdata -name "${lang}.*" -o -name "${lang}-frak.*"); do - vinstall $f 644 usr/share/tessdata - rm $f - done + $(pkg_lang ${pkgname#tesseract-ocr-}) } } tesseract-ocr-ita_old_package() { noarch=yes - depends="tesseract-ocr>=${version}_${revision}" + depends="${sourcepkg}>=${version}_${revision}" short_desc+=" - Italian (Old) language data" pkg_install() { - local f lang=${pkgname#tesseract-ocr-} - vmkdir usr/share/tessdata - for f in $(find ${wrksrc}/tessdata -name "${lang}.*" -o -name "${lang}-frak.*"); do - vinstall $f 644 usr/share/tessdata - rm $f - done + $(pkg_lang ${pkgname#tesseract-ocr-}) + } +} +tesseract-ocr-jav_package() { + noarch=yes + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - Javanese language data" + pkg_install() { + $(pkg_lang ${pkgname#tesseract-ocr-}) } } tesseract-ocr-jpn_package() { noarch=yes - depends="tesseract-ocr>=${version}_${revision}" + depends="${sourcepkg}>=${version}_${revision}" short_desc+=" - Japanese language data" pkg_install() { - local f lang=${pkgname#tesseract-ocr-} - vmkdir usr/share/tessdata - for f in $(find ${wrksrc}/tessdata -name "${lang}.*" -o -name "${lang}-frak.*"); do - vinstall $f 644 usr/share/tessdata - rm $f - done + $(pkg_lang ${pkgname#tesseract-ocr-}) } } tesseract-ocr-kan_package() { noarch=yes - depends="tesseract-ocr>=${version}_${revision}" + depends="${sourcepkg}>=${version}_${revision}" short_desc+=" - Kannada language data" pkg_install() { - local f lang=${pkgname#tesseract-ocr-} - vmkdir usr/share/tessdata - for f in $(find ${wrksrc}/tessdata -name "${lang}.*" -o -name "${lang}-frak.*"); do - vinstall $f 644 usr/share/tessdata - rm $f - done + $(pkg_lang ${pkgname#tesseract-ocr-}) + } +} +tesseract-ocr-kat_package() { + noarch=yes + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - Georgian language data" + pkg_install() { + $(pkg_lang ${pkgname#tesseract-ocr-}) + } +} +tesseract-ocr-kat_old_package() { + noarch=yes + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - Georgian (old) language data" + pkg_install() { + $(pkg_lang ${pkgname#tesseract-ocr-}) + } +} +tesseract-ocr-kaz_package() { + noarch=yes + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - Kazakh language data" + pkg_install() { + $(pkg_lang ${pkgname#tesseract-ocr-}) + } +} +tesseract-ocr-khm_package() { + noarch=yes + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - Central Khmer language data" + pkg_install() { + $(pkg_lang ${pkgname#tesseract-ocr-}) + } +} +tesseract-ocr-kir_package() { + noarch=yes + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - Kirghiz language data" + pkg_install() { + $(pkg_lang ${pkgname#tesseract-ocr-}) } } tesseract-ocr-kor_package() { noarch=yes - depends="tesseract-ocr>=${version}_${revision}" + depends="${sourcepkg}>=${version}_${revision}" short_desc+=" - Korean language data" pkg_install() { - local f lang=${pkgname#tesseract-ocr-} - vmkdir usr/share/tessdata - for f in $(find ${wrksrc}/tessdata -name "${lang}.*" -o -name "${lang}-frak.*"); do - vinstall $f 644 usr/share/tessdata - rm $f - done + $(pkg_lang ${pkgname#tesseract-ocr-}) + } +} +tesseract-ocr-kur_package() { + noarch=yes + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - Kurdish language data" + pkg_install() { + $(pkg_lang ${pkgname#tesseract-ocr-}) + } +} +tesseract-ocr-lao_package() { + noarch=yes + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - Lao language data" + pkg_install() { + $(pkg_lang ${pkgname#tesseract-ocr-}) + } +} +tesseract-ocr-lat_package() { + noarch=yes + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - Latin language data" + pkg_install() { + $(pkg_lang ${pkgname#tesseract-ocr-}) } } tesseract-ocr-lav_package() { noarch=yes - depends="tesseract-ocr>=${version}_${revision}" + depends="${sourcepkg}>=${version}_${revision}" short_desc+=" - Latvian language data" pkg_install() { - local f lang=${pkgname#tesseract-ocr-} - vmkdir usr/share/tessdata - for f in $(find ${wrksrc}/tessdata -name "${lang}.*" -o -name "${lang}-frak.*"); do - vinstall $f 644 usr/share/tessdata - rm $f - done + $(pkg_lang ${pkgname#tesseract-ocr-}) } } tesseract-ocr-lit_package() { noarch=yes - depends="tesseract-ocr>=${version}_${revision}" + depends="${sourcepkg}>=${version}_${revision}" short_desc+=" - Lithuanian language data" pkg_install() { - local f lang=${pkgname#tesseract-ocr-} - vmkdir usr/share/tessdata - for f in $(find ${wrksrc}/tessdata -name "${lang}.*" -o -name "${lang}-frak.*"); do - vinstall $f 644 usr/share/tessdata - rm $f - done + $(pkg_lang ${pkgname#tesseract-ocr-}) } } tesseract-ocr-mal_package() { noarch=yes - depends="tesseract-ocr>=${version}_${revision}" + depends="${sourcepkg}>=${version}_${revision}" short_desc+=" - Malayalam language data" pkg_install() { - local f lang=${pkgname#tesseract-ocr-} - vmkdir usr/share/tessdata - for f in $(find ${wrksrc}/tessdata -name "${lang}.*" -o -name "${lang}-frak.*"); do - vinstall $f 644 usr/share/tessdata - rm $f - done + $(pkg_lang ${pkgname#tesseract-ocr-}) + } +} +tesseract-ocr-mar_package() { + noarch=yes + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - Marathi language data" + pkg_install() { + $(pkg_lang ${pkgname#tesseract-ocr-}) } } tesseract-ocr-mkd_package() { noarch=yes - depends="tesseract-ocr>=${version}_${revision}" + depends="${sourcepkg}>=${version}_${revision}" short_desc+=" - Macedonian language data" pkg_install() { - local f lang=${pkgname#tesseract-ocr-} - vmkdir usr/share/tessdata - for f in $(find ${wrksrc}/tessdata -name "${lang}.*" -o -name "${lang}-frak.*"); do - vinstall $f 644 usr/share/tessdata - rm $f - done + $(pkg_lang ${pkgname#tesseract-ocr-}) } } tesseract-ocr-mlt_package() { noarch=yes - depends="tesseract-ocr>=${version}_${revision}" + depends="${sourcepkg}>=${version}_${revision}" short_desc+=" - Maltese language data" pkg_install() { - local f lang=${pkgname#tesseract-ocr-} - vmkdir usr/share/tessdata - for f in $(find ${wrksrc}/tessdata -name "${lang}.*" -o -name "${lang}-frak.*"); do - vinstall $f 644 usr/share/tessdata - rm $f - done + $(pkg_lang ${pkgname#tesseract-ocr-}) } } tesseract-ocr-msa_package() { noarch=yes - depends="tesseract-ocr>=${version}_${revision}" + depends="${sourcepkg}>=${version}_${revision}" short_desc+=" - Malay language data" pkg_install() { - local f lang=${pkgname#tesseract-ocr-} - vmkdir usr/share/tessdata - for f in $(find ${wrksrc}/tessdata -name "${lang}.*" -o -name "${lang}-frak.*"); do - vinstall $f 644 usr/share/tessdata - rm $f - done + $(pkg_lang ${pkgname#tesseract-ocr-}) + } +} +tesseract-ocr-mya_package() { + noarch=yes + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - Burmese language data" + pkg_install() { + $(pkg_lang ${pkgname#tesseract-ocr-}) + } +} +tesseract-ocr-nep_package() { + noarch=yes + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - Nepalese language data" + pkg_install() { + $(pkg_lang ${pkgname#tesseract-ocr-}) } } tesseract-ocr-nld_package() { noarch=yes - depends="tesseract-ocr>=${version}_${revision}" + depends="${sourcepkg}>=${version}_${revision}" short_desc+=" - Dutch language data" pkg_install() { - local f lang=${pkgname#tesseract-ocr-} - vmkdir usr/share/tessdata - for f in $(find ${wrksrc}/tessdata -name "${lang}.*" -o -name "${lang}-frak.*"); do - vinstall $f 644 usr/share/tessdata - rm $f - done + $(pkg_lang ${pkgname#tesseract-ocr-}) } } tesseract-ocr-nor_package() { noarch=yes - depends="tesseract-ocr>=${version}_${revision}" + depends="${sourcepkg}>=${version}_${revision}" short_desc+=" - Norwegian language data" pkg_install() { - local f lang=${pkgname#tesseract-ocr-} - vmkdir usr/share/tessdata - for f in $(find ${wrksrc}/tessdata -name "${lang}.*" -o -name "${lang}-frak.*"); do - vinstall $f 644 usr/share/tessdata - rm $f - done + $(pkg_lang ${pkgname#tesseract-ocr-}) + } +} +tesseract-ocr-ori_package() { + noarch=yes + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - Oriya language data" + pkg_install() { + $(pkg_lang ${pkgname#tesseract-ocr-}) + } +} +tesseract-ocr-osd_package() { + noarch=yes + depends="${sourcepkg}>=${version}_${revision}" + # No ISO639 code? + short_desc+=" - OSD language data" + pkg_install() { + $(pkg_lang ${pkgname#tesseract-ocr-}) + } +} +tesseract-ocr-pan_package() { + noarch=yes + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - Panjabi language data" + pkg_install() { + $(pkg_lang ${pkgname#tesseract-ocr-}) } } tesseract-ocr-pol_package() { noarch=yes - depends="tesseract-ocr>=${version}_${revision}" + depends="${sourcepkg}>=${version}_${revision}" short_desc+=" - Polish language data" pkg_install() { - local f lang=${pkgname#tesseract-ocr-} - vmkdir usr/share/tessdata - for f in $(find ${wrksrc}/tessdata -name "${lang}.*" -o -name "${lang}-frak.*"); do - vinstall $f 644 usr/share/tessdata - rm $f - done + $(pkg_lang ${pkgname#tesseract-ocr-}) } } tesseract-ocr-por_package() { noarch=yes - depends="tesseract-ocr>=${version}_${revision}" + depends="${sourcepkg}>=${version}_${revision}" short_desc+=" - Portuguese language data" pkg_install() { - local f lang=${pkgname#tesseract-ocr-} - vmkdir usr/share/tessdata - for f in $(find ${wrksrc}/tessdata -name "${lang}.*" -o -name "${lang}-frak.*"); do - vinstall $f 644 usr/share/tessdata - rm $f - done + $(pkg_lang ${pkgname#tesseract-ocr-}) + } +} +tesseract-ocr-pus_package() { + noarch=yes + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - Pushto language data" + pkg_install() { + $(pkg_lang ${pkgname#tesseract-ocr-}) } } tesseract-ocr-ron_package() { noarch=yes - depends="tesseract-ocr>=${version}_${revision}" + depends="${sourcepkg}>=${version}_${revision}" short_desc+=" - Romanian language data" pkg_install() { - local f lang=${pkgname#tesseract-ocr-} - vmkdir usr/share/tessdata - for f in $(find ${wrksrc}/tessdata -name "${lang}.*" -o -name "${lang}-frak.*"); do - vinstall $f 644 usr/share/tessdata - rm $f - done + $(pkg_lang ${pkgname#tesseract-ocr-}) } } tesseract-ocr-rus_package() { noarch=yes - depends="tesseract-ocr>=${version}_${revision}" - short_desc+=" - Russian Language Data" + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - Russian language data" pkg_install() { - local f lang=${pkgname#tesseract-ocr-} - vmkdir usr/share/tessdata - for f in $(find ${wrksrc}/tessdata -name "${lang}.*" -o -name "${lang}-frak.*"); do - vinstall $f 644 usr/share/tessdata - rm $f - done + $(pkg_lang ${pkgname#tesseract-ocr-}) + } +} +tesseract-ocr-san_package() { + noarch=yes + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - Sanskrit language data" + pkg_install() { + $(pkg_lang ${pkgname#tesseract-ocr-}) + } +} +tesseract-ocr-sin_package() { + noarch=yes + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - Sinhala language data" + pkg_install() { + $(pkg_lang ${pkgname#tesseract-ocr-}) } } tesseract-ocr-slk_package() { noarch=yes - depends="tesseract-ocr>=${version}_${revision}" + depends="${sourcepkg}>=${version}_${revision}" short_desc+=" - Slovakian language data" pkg_install() { - local f lang=${pkgname#tesseract-ocr-} - vmkdir usr/share/tessdata - for f in $(find ${wrksrc}/tessdata -name "${lang}.*" -o -name "${lang}-frak.*"); do - vinstall $f 644 usr/share/tessdata - rm $f - done + $(pkg_lang ${pkgname#tesseract-ocr-}) } } tesseract-ocr-slv_package() { noarch=yes - depends="tesseract-ocr>=${version}_${revision}" + depends="${sourcepkg}>=${version}_${revision}" short_desc+=" - Slovenian language data" pkg_install() { - local f lang=${pkgname#tesseract-ocr-} - vmkdir usr/share/tessdata - for f in $(find ${wrksrc}/tessdata -name "${lang}.*" -o -name "${lang}-frak.*"); do - vinstall $f 644 usr/share/tessdata - rm $f - done + $(pkg_lang ${pkgname#tesseract-ocr-}) } } tesseract-ocr-spa_package() { noarch=yes - depends="tesseract-ocr>=${version}_${revision}" + depends="${sourcepkg}>=${version}_${revision}" short_desc+=" - Spanish language data" pkg_install() { - local f lang=${pkgname#tesseract-ocr-} - vmkdir usr/share/tessdata - for f in $(find ${wrksrc}/tessdata -name "${lang}.*" -o -name "${lang}-frak.*"); do - vinstall $f 644 usr/share/tessdata - rm $f - done + $(pkg_lang ${pkgname#tesseract-ocr-}) } } tesseract-ocr-spa_old_package() { noarch=yes - depends="tesseract-ocr>=${version}_${revision}" + depends="${sourcepkg}>=${version}_${revision}" short_desc+=" - Spanish (Old) language data" pkg_install() { - local f lang=${pkgname#tesseract-ocr-} - vmkdir usr/share/tessdata - for f in $(find ${wrksrc}/tessdata -name "${lang}.*" -o -name "${lang}-frak.*"); do - vinstall $f 644 usr/share/tessdata - rm $f - done + $(pkg_lang ${pkgname#tesseract-ocr-}) } } tesseract-ocr-sqi_package() { noarch=yes - depends="tesseract-ocr>=${version}_${revision}" + depends="${sourcepkg}>=${version}_${revision}" short_desc+=" - Albanian language data" pkg_install() { - local f lang=${pkgname#tesseract-ocr-} - vmkdir usr/share/tessdata - for f in $(find ${wrksrc}/tessdata -name "${lang}.*" -o -name "${lang}-frak.*"); do - vinstall $f 644 usr/share/tessdata - rm $f - done + $(pkg_lang ${pkgname#tesseract-ocr-}) } } tesseract-ocr-srp_package() { noarch=yes - depends="tesseract-ocr>=${version}_${revision}" + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - Serbian language data" + pkg_install() { + $(pkg_lang ${pkgname#tesseract-ocr-}) + } +} +tesseract-ocr-srp_latn_package() { + noarch=yes + depends="${sourcepkg}>=${version}_${revision}" short_desc+=" - Serbian (Latin) language data" pkg_install() { - local f lang=${pkgname#tesseract-ocr-} - vmkdir usr/share/tessdata - for f in $(find ${wrksrc}/tessdata -name "${lang}.*" -o -name "${lang}-frak.*"); do - vinstall $f 644 usr/share/tessdata - rm $f - done + $(pkg_lang ${pkgname#tesseract-ocr-}) } } tesseract-ocr-swa_package() { noarch=yes - depends="tesseract-ocr>=${version}_${revision}" + depends="${sourcepkg}>=${version}_${revision}" short_desc+=" - Swahili language data" pkg_install() { - local f lang=${pkgname#tesseract-ocr-} - vmkdir usr/share/tessdata - for f in $(find ${wrksrc}/tessdata -name "${lang}.*" -o -name "${lang}-frak.*"); do - vinstall $f 644 usr/share/tessdata - rm $f - done + $(pkg_lang ${pkgname#tesseract-ocr-}) } } tesseract-ocr-swe_package() { noarch=yes - depends="tesseract-ocr>=${version}_${revision}" + depends="${sourcepkg}>=${version}_${revision}" short_desc+=" - Swedish language data" pkg_install() { - local f lang=${pkgname#tesseract-ocr-} - vmkdir usr/share/tessdata - for f in $(find ${wrksrc}/tessdata -name "${lang}.*" -o -name "${lang}-frak.*"); do - vinstall $f 644 usr/share/tessdata - rm $f - done + $(pkg_lang ${pkgname#tesseract-ocr-}) + } +} +tesseract-ocr-syr_package() { + noarch=yes + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - Syriac language data" + pkg_install() { + $(pkg_lang ${pkgname#tesseract-ocr-}) } } tesseract-ocr-tam_package() { noarch=yes - depends="tesseract-ocr>=${version}_${revision}" + depends="${sourcepkg}>=${version}_${revision}" short_desc+=" - Tamil language data" pkg_install() { - local f lang=${pkgname#tesseract-ocr-} - vmkdir usr/share/tessdata - for f in $(find ${wrksrc}/tessdata -name "${lang}.*" -o -name "${lang}-frak.*"); do - vinstall $f 644 usr/share/tessdata - rm $f - done + $(pkg_lang ${pkgname#tesseract-ocr-}) } } tesseract-ocr-tel_package() { noarch=yes - depends="tesseract-ocr>=${version}_${revision}" + depends="${sourcepkg}>=${version}_${revision}" short_desc+=" - Telugu language data" pkg_install() { - local f lang=${pkgname#tesseract-ocr-} - vmkdir usr/share/tessdata - for f in $(find ${wrksrc}/tessdata -name "${lang}.*" -o -name "${lang}-frak.*"); do - vinstall $f 644 usr/share/tessdata - rm $f - done + $(pkg_lang ${pkgname#tesseract-ocr-}) + } +} +tesseract-ocr-tgk_package() { + noarch=yes + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - Tajik language data" + pkg_install() { + $(pkg_lang ${pkgname#tesseract-ocr-}) } } tesseract-ocr-tgl_package() { noarch=yes - depends="tesseract-ocr>=${version}_${revision}" + depends="${sourcepkg}>=${version}_${revision}" short_desc+=" - Tagalog language data" pkg_install() { - local f lang=${pkgname#tesseract-ocr-} - vmkdir usr/share/tessdata - for f in $(find ${wrksrc}/tessdata -name "${lang}.*" -o -name "${lang}-frak.*"); do - vinstall $f 644 usr/share/tessdata - rm $f - done + $(pkg_lang ${pkgname#tesseract-ocr-}) } } tesseract-ocr-tha_package() { noarch=yes - depends="tesseract-ocr>=${version}_${revision}" + depends="${sourcepkg}>=${version}_${revision}" short_desc+=" - Thai language data" pkg_install() { - local f lang=${pkgname#tesseract-ocr-} - vmkdir usr/share/tessdata - for f in $(find ${wrksrc}/tessdata -name "${lang}.*" -o -name "${lang}-frak.*"); do - vinstall $f 644 usr/share/tessdata - rm $f - done + $(pkg_lang ${pkgname#tesseract-ocr-}) + } +} +tesseract-ocr-tir_package() { + noarch=yes + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - Tigrinya language data" + pkg_install() { + $(pkg_lang ${pkgname#tesseract-ocr-}) } } tesseract-ocr-tur_package() { noarch=yes - depends="tesseract-ocr>=${version}_${revision}" + depends="${sourcepkg}>=${version}_${revision}" short_desc+=" - Turkish language data" pkg_install() { - local f lang=${pkgname#tesseract-ocr-} - vmkdir usr/share/tessdata - for f in $(find ${wrksrc}/tessdata -name "${lang}.*" -o -name "${lang}-frak.*"); do - vinstall $f 644 usr/share/tessdata - rm $f - done + $(pkg_lang ${pkgname#tesseract-ocr-}) + } +} +tesseract-ocr-uig_package() { + noarch=yes + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - Uighur language data" + pkg_install() { + $(pkg_lang ${pkgname#tesseract-ocr-}) } } tesseract-ocr-ukr_package() { noarch=yes - depends="tesseract-ocr>=${version}_${revision}" + depends="${sourcepkg}>=${version}_${revision}" short_desc+=" - Ukrainian language data" pkg_install() { - local f lang=${pkgname#tesseract-ocr-} - vmkdir usr/share/tessdata - for f in $(find ${wrksrc}/tessdata -name "${lang}.*" -o -name "${lang}-frak.*"); do - vinstall $f 644 usr/share/tessdata - rm $f - done + $(pkg_lang ${pkgname#tesseract-ocr-}) + } +} +tesseract-ocr-urd_package() { + noarch=yes + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - Urdu language data" + pkg_install() { + $(pkg_lang ${pkgname#tesseract-ocr-}) + } +} +tesseract-ocr-uzb_package() { + noarch=yes + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - Uzbek language data" + pkg_install() { + $(pkg_lang ${pkgname#tesseract-ocr-}) + } +} +tesseract-ocr-uzb_cyrl_package() { + noarch=yes + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - Uzbek (Cyrillic) language data" + pkg_install() { + $(pkg_lang ${pkgname#tesseract-ocr-}) } } tesseract-ocr-vie_package() { noarch=yes - depends="tesseract-ocr>=${version}_${revision}" - short_desc+=" - Vietnamese Language Data" + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - Vietnamese language data" pkg_install() { - local f lang=${pkgname#tesseract-ocr-} - vmkdir usr/share/tessdata - for f in $(find ${wrksrc}/tessdata -name "${lang}.*" -o -name "${lang}-frak.*"); do - vinstall $f 644 usr/share/tessdata - rm $f - done + $(pkg_lang ${pkgname#tesseract-ocr-}) + } +} +tesseract-ocr-yid_package() { + noarch=yes + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - Yiddish language data" + pkg_install() { + $(pkg_lang ${pkgname#tesseract-ocr-}) } }