milis/talimatname/genel/g/gocr/talimat

27 lines
751 B
Plaintext
Raw Normal View History

2018-06-09 00:06:58 +02:00
# Tanım: Açık kaynaklı karakter tanıma (OCR)
# URL: http://jocr.sourceforge.net/index.html
# Paketçi: Cihan_Alkan
# Gerekler: netpbm
2018-07-20 09:41:09 +02:00
# Grup: ofis
2018-06-09 00:06:58 +02:00
isim=gocr
surum=0.51
devir=1
kaynak=(https://www-e.uni-magdeburg.de/jschulen/ocr/gocr-${surum}.tar.gz)
derle() {
cd "$SRC"/$isim-$surum
export CFLAGS=-fPIC
./configure --prefix=/usr --mandir=/usr/share/man --libdir=/usr/lib
make -j1 all libs
mkdir -p "$PKG"/usr/lib
make DESTDIR="$PKG" libdir=/usr/lib/ bindir=/usr/bin install
(cd "$PKG"/usr/lib/ && rm -f libPgm2asc.so && ln -s `echo libPgm2asc*.so` libPgm2asc.so)
install -D -m644 doc/gocr.html "$PKG"/usr/share/doc/gocr/gocr.html
for i in pgm2asc.h gocr.h; do
install -D -m644 src/$i "$PKG"/usr/include/gocr/$i
done
}