1068 lines
33 KiB
Bash
1068 lines
33 KiB
Bash
# Template file for 'tesseract-ocr'
|
|
pkgname=tesseract-ocr
|
|
version=3.02.02
|
|
revision=2
|
|
wrksrc=$pkgname
|
|
build_style=gnu-configure
|
|
configure_args="LIBLEPT_HEADERSDIR=${XBPS_CROSS_BASE}/usr/include"
|
|
hostmakedepends="automake libtool leptonica"
|
|
makedepends="pango-devel leptonica-devel"
|
|
short_desc="Tesseract Open Source OCR engine"
|
|
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
|
|
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"
|
|
|
|
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"
|
|
|
|
pre_configure() {
|
|
cd ${wrksrc}
|
|
./autogen.sh
|
|
}
|
|
post_install() {
|
|
# Rename binary to avoid conflict with tesseract package
|
|
mv ${DESTDIR}/usr/bin/tesseract{,-ocr}
|
|
mv ${DESTDIR}/usr/share/man/man1/tesseract{,-ocr}.1
|
|
vdoc ChangeLog
|
|
vdoc README
|
|
vdoc eurotext.tif
|
|
vdoc phototest.tif
|
|
}
|
|
tesseract-ocr-tools_package() {
|
|
depends="tesseract-ocr>=${version}_${revision}"
|
|
short_desc+=" - Tools (development)"
|
|
pkg_install() {
|
|
local f
|
|
vmkdir usr/share/tesseract
|
|
vmkdir usr/share/man/man1
|
|
vmkdir usr/share/man/man5
|
|
for f in ambiguous_words classifier_tester cntraining combine_tessdata \
|
|
dawg2wordlist mftraining shapeclustering unicharambigs unicharset \
|
|
unicharset_extractor wordlist2dawg; do
|
|
if [ -e ${DESTDIR}/usr/bin/${f} ]; then
|
|
mv ${DESTDIR}/usr/bin/$f \
|
|
${PKGDESTDIR}/usr/share/tesseract
|
|
fi
|
|
for n in 1 5; do
|
|
if [ -e ${DESTDIR}/usr/share/man/man${n}/${f}.${n} ]; then
|
|
mv ${DESTDIR}/usr/share/man/man${n}/${f}.${n} \
|
|
${PKGDESTDIR}/usr/share/man/man${n}
|
|
fi
|
|
done
|
|
done
|
|
}
|
|
}
|
|
tesseract-ocr-devel_package() {
|
|
depends="tesseract-ocr>=${version}_${revision}"
|
|
short_desc+=" - Development files"
|
|
pkg_install() {
|
|
vmove usr/include/tesseract
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.a"
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|
|
tesseract-ocr-basic_package() {
|
|
local lang
|
|
noarch=yes
|
|
depends="tesseract-ocr>=${version}_${revision}"
|
|
conflics="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}"
|
|
done
|
|
}
|
|
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+=" tesseract-ocr-${lang}>=${version}_${revision}"
|
|
done
|
|
}
|
|
tesseract-ocr-afr_package() {
|
|
noarch=yes
|
|
depends="tesseract-ocr>=${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
|
|
}
|
|
}
|
|
tesseract-ocr-ara_package() {
|
|
noarch=yes
|
|
depends="tesseract-ocr>=${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
|
|
}
|
|
}
|
|
tesseract-ocr-aze_package() {
|
|
noarch=yes
|
|
depends="tesseract-ocr>=${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
|
|
}
|
|
}
|
|
tesseract-ocr-bel_package() {
|
|
noarch=yes
|
|
depends="tesseract-ocr>=${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
|
|
}
|
|
}
|
|
tesseract-ocr-ben_package() {
|
|
noarch=yes
|
|
depends="tesseract-ocr>=${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
|
|
}
|
|
}
|
|
tesseract-ocr-bul_package() {
|
|
noarch=yes
|
|
depends="tesseract-ocr>=${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
|
|
}
|
|
}
|
|
tesseract-ocr-cat_package() {
|
|
noarch=yes
|
|
depends="tesseract-ocr>=${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
|
|
}
|
|
}
|
|
tesseract-ocr-ces_package() {
|
|
noarch=yes
|
|
depends="tesseract-ocr>=${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
|
|
}
|
|
}
|
|
tesseract-ocr-chi_sim_package() {
|
|
noarch=yes
|
|
depends="tesseract-ocr>=${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
|
|
}
|
|
}
|
|
tesseract-ocr-chi_tra_package() {
|
|
noarch=yes
|
|
depends="tesseract-ocr>=${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
|
|
}
|
|
}
|
|
tesseract-ocr-chr_package() {
|
|
noarch=yes
|
|
depends="tesseract-ocr>=${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
|
|
}
|
|
}
|
|
tesseract-ocr-dan_package() {
|
|
noarch=yes
|
|
depends="tesseract-ocr>=${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
|
|
}
|
|
}
|
|
tesseract-ocr-deu_package() {
|
|
noarch=yes
|
|
depends="tesseract-ocr>=${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
|
|
}
|
|
}
|
|
tesseract-ocr-ell_package() {
|
|
noarch=yes
|
|
depends="tesseract-ocr>=${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
|
|
}
|
|
}
|
|
tesseract-ocr-eng_package() {
|
|
noarch=yes
|
|
depends="tesseract-ocr>=${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
|
|
}
|
|
}
|
|
tesseract-ocr-enm_package() {
|
|
noarch=yes
|
|
depends="tesseract-ocr>=${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
|
|
}
|
|
}
|
|
tesseract-ocr-epo_package() {
|
|
noarch=yes
|
|
depends="tesseract-ocr>=${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
|
|
}
|
|
}
|
|
tesseract-ocr-equ_package() {
|
|
noarch=yes
|
|
depends="tesseract-ocr>=${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
|
|
}
|
|
}
|
|
tesseract-ocr-est_package() {
|
|
noarch=yes
|
|
depends="tesseract-ocr>=${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
|
|
}
|
|
}
|
|
tesseract-ocr-eus_package() {
|
|
noarch=yes
|
|
depends="tesseract-ocr>=${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
|
|
}
|
|
}
|
|
tesseract-ocr-fin_package() {
|
|
noarch=yes
|
|
depends="tesseract-ocr>=${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
|
|
}
|
|
}
|
|
tesseract-ocr-fra_package() {
|
|
noarch=yes
|
|
depends="tesseract-ocr>=${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
|
|
}
|
|
}
|
|
tesseract-ocr-frk_package() {
|
|
noarch=yes
|
|
depends="tesseract-ocr>=${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
|
|
}
|
|
}
|
|
tesseract-ocr-frm_package() {
|
|
noarch=yes
|
|
depends="tesseract-ocr>=${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
|
|
}
|
|
}
|
|
tesseract-ocr-glg_package() {
|
|
noarch=yes
|
|
depends="tesseract-ocr>=${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
|
|
}
|
|
}
|
|
tesseract-ocr-grc_package() {
|
|
noarch=yes
|
|
depends="tesseract-ocr>=${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
|
|
}
|
|
}
|
|
tesseract-ocr-heb_package() {
|
|
noarch=yes
|
|
depends="tesseract-ocr>=${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
|
|
}
|
|
}
|
|
tesseract-ocr-hin_package() {
|
|
noarch=yes
|
|
depends="tesseract-ocr>=${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
|
|
}
|
|
}
|
|
tesseract-ocr-hrv_package() {
|
|
noarch=yes
|
|
depends="tesseract-ocr>=${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
|
|
}
|
|
}
|
|
tesseract-ocr-hun_package() {
|
|
noarch=yes
|
|
depends="tesseract-ocr>=${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
|
|
}
|
|
}
|
|
tesseract-ocr-ind_package() {
|
|
noarch=yes
|
|
depends="tesseract-ocr>=${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
|
|
}
|
|
}
|
|
tesseract-ocr-isl_package() {
|
|
noarch=yes
|
|
depends="tesseract-ocr>=${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
|
|
}
|
|
}
|
|
tesseract-ocr-ita_package() {
|
|
noarch=yes
|
|
depends="tesseract-ocr>=${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
|
|
}
|
|
}
|
|
tesseract-ocr-ita_old_package() {
|
|
noarch=yes
|
|
depends="tesseract-ocr>=${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
|
|
}
|
|
}
|
|
tesseract-ocr-jpn_package() {
|
|
noarch=yes
|
|
depends="tesseract-ocr>=${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
|
|
}
|
|
}
|
|
tesseract-ocr-kan_package() {
|
|
noarch=yes
|
|
depends="tesseract-ocr>=${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
|
|
}
|
|
}
|
|
tesseract-ocr-kor_package() {
|
|
noarch=yes
|
|
depends="tesseract-ocr>=${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
|
|
}
|
|
}
|
|
tesseract-ocr-lav_package() {
|
|
noarch=yes
|
|
depends="tesseract-ocr>=${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
|
|
}
|
|
}
|
|
tesseract-ocr-lit_package() {
|
|
noarch=yes
|
|
depends="tesseract-ocr>=${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
|
|
}
|
|
}
|
|
tesseract-ocr-mal_package() {
|
|
noarch=yes
|
|
depends="tesseract-ocr>=${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
|
|
}
|
|
}
|
|
tesseract-ocr-mkd_package() {
|
|
noarch=yes
|
|
depends="tesseract-ocr>=${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
|
|
}
|
|
}
|
|
tesseract-ocr-mlt_package() {
|
|
noarch=yes
|
|
depends="tesseract-ocr>=${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
|
|
}
|
|
}
|
|
tesseract-ocr-msa_package() {
|
|
noarch=yes
|
|
depends="tesseract-ocr>=${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
|
|
}
|
|
}
|
|
tesseract-ocr-nld_package() {
|
|
noarch=yes
|
|
depends="tesseract-ocr>=${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
|
|
}
|
|
}
|
|
tesseract-ocr-nor_package() {
|
|
noarch=yes
|
|
depends="tesseract-ocr>=${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
|
|
}
|
|
}
|
|
tesseract-ocr-pol_package() {
|
|
noarch=yes
|
|
depends="tesseract-ocr>=${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
|
|
}
|
|
}
|
|
tesseract-ocr-por_package() {
|
|
noarch=yes
|
|
depends="tesseract-ocr>=${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
|
|
}
|
|
}
|
|
tesseract-ocr-ron_package() {
|
|
noarch=yes
|
|
depends="tesseract-ocr>=${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
|
|
}
|
|
}
|
|
tesseract-ocr-rus_package() {
|
|
noarch=yes
|
|
depends="tesseract-ocr>=${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
|
|
}
|
|
}
|
|
tesseract-ocr-slk_package() {
|
|
noarch=yes
|
|
depends="tesseract-ocr>=${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
|
|
}
|
|
}
|
|
tesseract-ocr-slv_package() {
|
|
noarch=yes
|
|
depends="tesseract-ocr>=${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
|
|
}
|
|
}
|
|
tesseract-ocr-spa_package() {
|
|
noarch=yes
|
|
depends="tesseract-ocr>=${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
|
|
}
|
|
}
|
|
tesseract-ocr-spa_old_package() {
|
|
noarch=yes
|
|
depends="tesseract-ocr>=${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
|
|
}
|
|
}
|
|
tesseract-ocr-sqi_package() {
|
|
noarch=yes
|
|
depends="tesseract-ocr>=${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
|
|
}
|
|
}
|
|
tesseract-ocr-srp_package() {
|
|
noarch=yes
|
|
depends="tesseract-ocr>=${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
|
|
}
|
|
}
|
|
tesseract-ocr-swa_package() {
|
|
noarch=yes
|
|
depends="tesseract-ocr>=${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
|
|
}
|
|
}
|
|
tesseract-ocr-swe_package() {
|
|
noarch=yes
|
|
depends="tesseract-ocr>=${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
|
|
}
|
|
}
|
|
tesseract-ocr-tam_package() {
|
|
noarch=yes
|
|
depends="tesseract-ocr>=${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
|
|
}
|
|
}
|
|
tesseract-ocr-tel_package() {
|
|
noarch=yes
|
|
depends="tesseract-ocr>=${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
|
|
}
|
|
}
|
|
tesseract-ocr-tgl_package() {
|
|
noarch=yes
|
|
depends="tesseract-ocr>=${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
|
|
}
|
|
}
|
|
tesseract-ocr-tha_package() {
|
|
noarch=yes
|
|
depends="tesseract-ocr>=${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
|
|
}
|
|
}
|
|
tesseract-ocr-tur_package() {
|
|
noarch=yes
|
|
depends="tesseract-ocr>=${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
|
|
}
|
|
}
|
|
tesseract-ocr-ukr_package() {
|
|
noarch=yes
|
|
depends="tesseract-ocr>=${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
|
|
}
|
|
}
|
|
tesseract-ocr-vie_package() {
|
|
noarch=yes
|
|
depends="tesseract-ocr>=${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
|
|
}
|
|
}
|