8ddd61d984
[ci skip]
1094 lines
27 KiB
Bash
1094 lines
27 KiB
Bash
# Template file for 'tesseract-ocr'
|
|
pkgname=tesseract-ocr
|
|
version=4.0.0
|
|
revision=1
|
|
wrksrc="tesseract-${version}"
|
|
build_style=gnu-configure
|
|
configure_args="LIBLEPT_HEADERSDIR=${XBPS_CROSS_BASE}/usr/include"
|
|
hostmakedepends="automake libtool pkg-config leptonica libxslt asciidoc"
|
|
makedepends="cairo-devel pango-devel leptonica-devel icu-devel"
|
|
short_desc="Tesseract Open Source OCR engine"
|
|
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
|
|
license="Apache-2.0"
|
|
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/${version}.tar.gz>tessdata-${version}.tar.gz"
|
|
checksum="a1f5422ca49a32e5f35c54dee5112b11b99928fc9f4ee6695cdc6768d69f61dd
|
|
38c637d3a1763f6c3d32e8f1d979f045668676ec5feb8ee1869ee77cedd31b08"
|
|
|
|
# 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.*" \
|
|
-o -name "${lang}_vert.*" ); do
|
|
vinstall $f 644 usr/share/tessdata
|
|
rm $f
|
|
done
|
|
}
|
|
|
|
post_extract() {
|
|
mv ${XBPS_BUILDDIR}/tessdata-${version}/* ${wrksrc}/tessdata
|
|
rmdir ${XBPS_BUILDDIR}/tessdata-${version}
|
|
}
|
|
pre_configure() {
|
|
NOCONFIGURE=1 ./autogen.sh
|
|
}
|
|
post_build() {
|
|
make ${makejobs} training
|
|
}
|
|
do_check() {
|
|
: # submodule not in tarball
|
|
}
|
|
post_install() {
|
|
local lang
|
|
# 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.md
|
|
vlicense ${FILESDIR}/COPYING LICENSE-tessdata
|
|
# Move the pseudo languges "equ" (math / equation detection) and
|
|
# "osd" (orientation and script detection) to the main package
|
|
for lang in equ osd; do
|
|
$(pkg_lang ${lang})
|
|
done
|
|
}
|
|
tesseract-ocr-tools_package() {
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Tools (development)"
|
|
pkg_install() {
|
|
local f
|
|
make DESTDIR=${PKGDESTDIR} training-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 tool manual pages
|
|
for f in ambiguous_words cntraining combine_tessdata \
|
|
dawg2wordlist mftraining shapeclustering unicharambigs \
|
|
unicharset unicharset_extractor wordlist2dawg; do
|
|
for n in 1 5; do
|
|
if [ -e ${DESTDIR}/usr/share/man/man${n}/${f}.${n} ]; then
|
|
vmove usr/share/man/man${n}/${f}.${n}
|
|
fi
|
|
done
|
|
done
|
|
}
|
|
}
|
|
tesseract-ocr-devel_package() {
|
|
depends="${sourcepkg}>=${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
|
|
archs=noarch
|
|
build_style=meta
|
|
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 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
|
|
archs=noarch
|
|
build_style=meta
|
|
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 bre bul cat ceb \
|
|
ces chi_sim chi_tra chr cos cym dan deu div dzo ell eng enm epo est eus fao \
|
|
fas fil fin fra frk frm fry gla gle glg grc guj hat heb hin hrv hun hye iku ind isl ita \
|
|
ita_old jav jpn kan kat kat_old kaz khm kir kor kur kur_ara lao lat lav lit ltz mal mar \
|
|
mkd mlt mon mri msa mya nep nld nor oci ori pan pol por que pus ron rus san sin slk slv \
|
|
snd spa spa_old sqi srp srp_latn sun swa swe syr tam tat tel tgk tgl tha tir ton tur \
|
|
uig ukr urd uzb uzb_cyrl vie yor yid; do
|
|
depends+=" tesseract-ocr-${lang}>=${version}_${revision}"
|
|
done
|
|
}
|
|
tesseract-ocr-afr_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Afrikaans language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-amh_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Amharic language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-ara_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Arabic language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-asm_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Assamese language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-aze_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Azerbaijani language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-aze_cyrl_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Azerbaijani (cyrillic) language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-bel_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Belarusian language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-ben_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Bengali language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-bod_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Tibetan language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-bos_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Bosnian language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-bre_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Breton language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-bul_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Bulgarian language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-cat_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Catalan language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-ceb_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Cebuano language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-ces_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Czech language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-chi_sim_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Chinese (Simplified) language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-chi_tra_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Chinese (Traditional) language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-chr_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Cherokee language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-cos_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Corsican language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-cym_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Welsh language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-dan_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Danish language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-deu_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - German language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-div_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Dhivehi language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-dzo_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Dzongkha language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-ell_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Greek language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-eng_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - English language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-enm_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Middle English (1100-1500) language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-epo_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Esperanto language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-est_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Estonian language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-eus_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Basque language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-fao_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Faroese language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-fas_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Persian language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-fil_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Filipino language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-fin_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Finnish language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-fra_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - French language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-frk_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Frankish language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-frm_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Middle French (ca. 1400-1600) language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-fry_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Frisian language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-gla_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Scottish Gaelic language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-gle_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Irish language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-glg_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Galician language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-grc_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Ancient Greek Language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-guj_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Gujarati Language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-hat_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Haitian language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-heb_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Hebrew language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-hin_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Hindi language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-hrv_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Croatian language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-hun_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Hungarian language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-hye_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Armenian language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-iku_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Inuktitut language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-ind_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Indonesian language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-isl_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Icelandic language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-ita_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Italian language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-ita_old_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Italian (Old) language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-jav_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Javanese language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-jpn_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Japanese language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-kan_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Kannada language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-kat_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Georgian language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-kat_old_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Georgian (old) language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-kaz_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Kazakh language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-khm_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Central Khmer language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-kir_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Kirghiz language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-kor_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Korean language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-kur_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Kurdish language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-kur_ara_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Kurdish (Arabic) language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-lao_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Lao language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-lat_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Latin language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-lav_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Latvian language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-lit_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Lithuanian language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-ltz_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Luxembourgish language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-mal_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Malayalam language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-mar_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Marathi language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-mkd_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Macedonian language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-mlt_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Maltese language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-mon_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Mongolian language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-mri_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Maori language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-msa_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Malay language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-mya_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Burmese language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-nep_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Nepalese language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-nld_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Dutch language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-nor_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Norwegian language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-oci_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Occitan (post 1500) language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-ori_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Oriya language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-pan_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Panjabi language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-pol_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Polish language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-por_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Portuguese language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-pus_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Pushto language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-que_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Quechua language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-ron_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Romanian language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-rus_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Russian language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-san_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Sanskrit language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-sin_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Sinhala language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-slk_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Slovakian language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-slv_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Slovenian language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-snd_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Sindhi language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-spa_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Spanish language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-spa_old_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Spanish (Old) language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-sqi_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Albanian language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-srp_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Serbian language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-srp_latn_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Serbian (Latin) language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-sun_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Sundanese language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-swa_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Swahili language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-swe_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Swedish language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-syr_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Syriac language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-tam_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Tamil language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-tat_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Tatar language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-tel_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Telugu language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-tgk_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Tajik language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-tgl_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Tagalog language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-tha_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Thai language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-tir_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Tigrinya language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-ton_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Tonga language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-tur_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Turkish language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-uig_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Uighur language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-ukr_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Ukrainian language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-urd_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Urdu language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-uzb_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Uzbek language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-uzb_cyrl_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Uzbek (Cyrillic) language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-vie_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Vietnamese language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-yid_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Yiddish language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|
|
tesseract-ocr-yor_package() {
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Yoruba language data"
|
|
pkg_install() {
|
|
$(pkg_lang ${pkgname#tesseract-ocr-})
|
|
}
|
|
}
|