From aa8e45e814bc333c2ef06cbf1e705a1eec5cdb5c Mon Sep 17 00:00:00 2001 From: milisbir Date: Thu, 8 Mar 2018 09:04:52 +0200 Subject: [PATCH] tesseract --- talimatname/genel/t/tesseract/talimat | 29 +++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 talimatname/genel/t/tesseract/talimat diff --git a/talimatname/genel/t/tesseract/talimat b/talimatname/genel/t/tesseract/talimat new file mode 100644 index 000000000..95d873bab --- /dev/null +++ b/talimatname/genel/t/tesseract/talimat @@ -0,0 +1,29 @@ +# Tanım: OCR programı +# URL: https://github.com/tesseract-ocr/tesseract +# Paketçi: Cihan_Alkan +# Gerekler: libpng libtiff libjpeg-turbo zlib giflib leptonica icu cairo pango +# Grup: medya + +isim=tesseract +surum=3.05.01 +devir=1 + +kaynak=(https://github.com/tesseract-ocr/tesseract/archive/$surum.tar.gz::${isim}-${surum}.tar.gz + https://github.com/tesseract-ocr/tessdata/raw/master/osd.traineddata) + https://github.com/tesseract-ocr/tessdata/raw/master/tur.traineddata) + +derle() { + cd "$SRC"/$isim-${surum} + [ -x configure ] || ./autogen.sh + [ -f Makefile ] || ./configure --prefix=/usr + make + make training + make DESTDIR="$PKG" install + make DESTDIR="$PKG" training-install + mkdir -p "$PKG"/usr/share/tessdata + install -Dm0644 "$SRC"/osd.traineddata "$PKG"/usr/share/tessdata/osd.traineddata + + mkdir -p \$PKG/usr/share/tessdata + cp \$SRC/tur.traineddata \$PKG/usr/share/tessdata/ + find \$PKG/usr/share/tessdata -type f -exec chmod 0644 {} \; +}