diff options
author | root <root@rshg054.dnsready.net> | 2013-08-13 01:33:19 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-08-13 01:33:19 -0700 |
commit | 7a65a910b77ad191d69881098c47f9b0c852d92e (patch) | |
tree | 9564e611af1442f8952a8cbddb3b0ad25ed71aab /community/gocr/PKGBUILD | |
parent | 60da6abff6c9577a783d72865f11de7a585e912e (diff) |
Tue Aug 13 01:31:08 PDT 2013
Diffstat (limited to 'community/gocr/PKGBUILD')
-rw-r--r-- | community/gocr/PKGBUILD | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/community/gocr/PKGBUILD b/community/gocr/PKGBUILD new file mode 100644 index 000000000..1bf3b3c5a --- /dev/null +++ b/community/gocr/PKGBUILD @@ -0,0 +1,33 @@ +# $Id: PKGBUILD 88468 2013-04-18 12:15:06Z spupykin $ +# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> +# Contributor: damir <damir@archlinux.org> + +pkgname=gocr +pkgver=0.50 +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=('553ea40c2b3a1a0b03a30675d0e0aba1') + +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 +} |