milis/talimatname/genel/t/tesseract/talimat

29 lines
908 B
Plaintext
Raw Normal View History

2018-03-08 08:04:52 +01:00
# 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
2018-03-08 08:09:29 +01:00
https://github.com/tesseract-ocr/tessdata/raw/master/osd.traineddata
2018-03-08 08:04:52 +01:00
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
2018-03-08 08:09:29 +01:00
cp $SRC/tur.traineddata $PKG/usr/share/tessdata/
2018-03-08 08:13:28 +01:00
find $PKG/usr/share/tessdata -type f -exec chmod 0644 {} \;
2018-03-08 08:04:52 +01:00
}