PKGBUILDs/extra/gocr/PKGBUILD
2009-10-09 21:23:22 -05:00

23 lines
721 B
Bash
Executable file

# $Id: PKGBUILD 50424 2009-08-26 10:47:59Z allan $
# Maintainer:
# Contributor: damir <damir@archlinux.org>
pkgname=gocr
pkgver=0.48
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=('9882ba9a93fcb18ab704a10da80c228c')
build() {
cd $srcdir/$pkgname-$pkgver
./configure --prefix=/usr --mandir=/usr/share/man || return 1
make || return 1
make DESTDIR=$pkgdir bindir=/usr/bin install || return 1
install -D -m644 doc/gocr.html $pkgdir/usr/share/doc/gocr/gocr.html
}