talimat 908 B

1234567891011121314151617181920212223242526272829
  1. # Tanım: OCR programı
  2. # URL: https://github.com/tesseract-ocr/tesseract
  3. # Paketçi: Cihan_Alkan
  4. # Gerekler: libpng libtiff libjpeg-turbo zlib giflib leptonica icu cairo pango
  5. # Grup: medya
  6. isim=tesseract
  7. surum=3.05.01
  8. devir=1
  9. kaynak=(https://github.com/tesseract-ocr/tesseract/archive/$surum.tar.gz::${isim}-${surum}.tar.gz
  10. https://github.com/tesseract-ocr/tessdata/raw/master/osd.traineddata
  11. https://github.com/tesseract-ocr/tessdata/raw/master/tur.traineddata)
  12. derle() {
  13. cd "$SRC"/$isim-${surum}
  14. [ -x configure ] || ./autogen.sh
  15. [ -f Makefile ] || ./configure --prefix=/usr
  16. make
  17. make training
  18. make DESTDIR="$PKG" install
  19. make DESTDIR="$PKG" training-install
  20. mkdir -p "$PKG"/usr/share/tessdata
  21. install -Dm0644 "$SRC"/osd.traineddata "$PKG"/usr/share/tessdata/osd.traineddata
  22. cp $SRC/tur.traineddata $PKG/usr/share/tessdata/
  23. find $PKG/usr/share/tessdata -type f -exec chmod 0644 {} \;
  24. }