# Contributor: Carlo Landmeter # Maintainer: Francesco Colista pkgname=tesseract-ocr pkgver=3.05.01 pkgrel=0 pkgdesc="open source OCR engine" url="https://github.com/tesseract-ocr/tesseract/releases" arch="all" license="Apache" depends="" depends_dev="" makedepends="automake autoconf libtool leptonica-dev pango-dev icu-dev cairo-dev" subpackages="$pkgname-dev $pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://github.com/$pkgname/${pkgname/-*}/archive/$pkgver.tar.gz" builddir="$srcdir"/${pkgname/-*}-$pkgver build() { cd "$builddir" ./autogen.sh || return 1 ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --localstatedir=/var \ --disable-static \ --disable-graphics \ || return 1 make || return 1 } package() { cd "$builddir" make DESTDIR="$pkgdir" install || return 1 } sha512sums="a49c20c98386684cd89582e57b772811204fad8e5ff18214fb0da109f73629c70845054985e31e8deeb49107fbcf56e546aff661f08eb5dd60fbf83dbe976e81 tesseract-ocr-3.05.01.tar.gz"