tesseract-ocr: update to 3.04.01

This commit is contained in:
Jürgen Buchmüller 2016-03-02 14:33:34 +01:00
parent a0dafce8b7
commit afa5cf6e00
1 changed files with 14 additions and 10 deletions

View File

@ -1,21 +1,23 @@
# Template file for 'tesseract-ocr'
pkgname=tesseract-ocr
version=3.04.00
revision=4
version=3.04.01
revision=1
wrksrc=tesseract-${version}
_tessdata_ver=074c37215b01ab8cc47a0e06ff7356383883d775
_tessdata_ver=6c9657715d38cb44aea9135605860b1b61b0e275
build_style=gnu-configure
configure_args="LIBLEPT_HEADERSDIR=${XBPS_CROSS_BASE}/usr/include"
hostmakedepends="automake libtool leptonica unzip"
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://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"
distfiles="
https://github.com/tesseract-ocr/tesseract/archive/${version}.tar.gz>${pkgname}-${version}.tar.gz
https://github.com/tesseract-ocr/tessdata/archive/${_tessdata_ver}.tar.gz>tessdata-${_tessdata_ver}.tar.gz"
checksum="
57f63e1b14ae04c3932a2683e4be4954a2849e17edd638ffe91bc5a2156adc6a
9da120aa47fc5f2780fb3bf6a346b502607e2b087d1f6857c6d55d5d003ec567"
# Create a package for one specific language $1
pkg_lang() {
@ -52,9 +54,11 @@ post_install() {
mv ${DESTDIR}/usr/bin/tesseract{,-ocr}
mv ${DESTDIR}/usr/share/man/man1/tesseract{,-ocr}.1
vdoc ChangeLog
vdoc README
vdoc ReleaseNotes
vdoc README.md
vdoc testing/eurotext.tif
vdoc testing/phototest.tif
vlicense tessdata/COPYING LICENSE-tessdata
}
tesseract-ocr-tools_package() {
depends="${sourcepkg}>=${version}_${revision}"
@ -108,7 +112,7 @@ tesseract-ocr-basic_package() {
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
for lang in bel dan deu eng equ fin fra hun ita nld nor osd pol por rus spa swe tur; do
depends+=" tesseract-ocr-${lang}>=${version}_${revision}"
done
}