summaryrefslogtreecommitdiff
path: root/community/gocr
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/gocr
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/gocr')
-rw-r--r--community/gocr/PKGBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/community/gocr/PKGBUILD b/community/gocr/PKGBUILD
new file mode 100644
index 000000000..e7e5386fe
--- /dev/null
+++ b/community/gocr/PKGBUILD
@@ -0,0 +1,33 @@
+# $Id: PKGBUILD 37573 2011-01-14 16:30:47Z spupykin $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Contributor: damir <damir@archlinux.org>
+
+pkgname=gocr
+pkgver=0.49
+pkgrel=1
+pkgdesc="Open-source character recognition (OCR)"
+arch=("i686" "x86_64")
+url="http://jocr.sourceforge.net/index.html"
+license=('GPL')
+depends=('glibc' 'netpbm')
+optdepends=('tk: to use the tk frontend')
+source=(http://www-e.uni-magdeburg.de/jschulen/ocr/gocr-${pkgver}.tar.gz)
+md5sums=('4e527bc4bdd97c2be15fdd818857507f')
+
+build() {
+ cd $srcdir/$pkgname-$pkgver
+ [ $CARCH == "x86_64" ] && export CFLAGS=-fPIC
+ ./configure --prefix=/usr --mandir=/usr/share/man --libdir=/usr/lib
+ make -j1 all libs
+}
+
+package() {
+ cd $srcdir/$pkgname-$pkgver
+ mkdir -p $pkgdir/usr/lib
+ make DESTDIR=$pkgdir libdir=/usr/lib/ bindir=/usr/bin install
+ (cd $pkgdir/usr/lib/ && rm -f libPgm2asc.so && ln -s `echo libPgm2asc*.so` libPgm2asc.so)
+ install -D -m644 doc/gocr.html $pkgdir/usr/share/doc/gocr/gocr.html
+ for i in pgm2asc.h gocr.h; do
+ install -D -m644 src/$i $pkgdir/usr/include/gocr/$i
+ done
+}