# $Id: PKGBUILD 102179 2013-12-06 12:13:24Z giovanni $ # Maintainer: Giovanni Scafora pkgname=ocrad pkgver=0.22 pkgrel=1 pkgdesc="An Optical Character Recognition program" arch=('i686' 'x86_64' 'mips64el') url="http://www.gnu.org/software/ocrad/ocrad.html" license=('GPL3') depends=('gcc-libs' 'texinfo') install=ocrad.install options=('staticlibs') source=("http://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.lz") md5sums=('e84f0fb0dcd9b7b067201f9a3b89e06c') build() { cd "${srcdir}/${pkgname}-${pkgver}" ./configure --prefix=/usr \ CXXFLAGS="${CXXFLAGS}" \ LDFLAGS="${LDFLAGS}" make } package() { cd "${srcdir}/${pkgname}-${pkgver}" make DESTDIR="${pkgdir}" install install-man rm $pkgdir/usr/share/info/dir gzip $pkgdir/usr/share/info/* }