aboutsummaryrefslogtreecommitdiffstats
path: root/community/tesseract-ocr/APKBUILD
blob: 2c950162c937a3214119310ba4111ccb952c0d92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=tesseract-ocr
pkgver=3.04.01
pkgrel=1
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
}

md5sums="645a21effcf2825a3473849d72a7fd90  tesseract-ocr-3.04.01.tar.gz"
sha256sums="57f63e1b14ae04c3932a2683e4be4954a2849e17edd638ffe91bc5a2156adc6a  tesseract-ocr-3.04.01.tar.gz"
sha512sums="816f6c29f8efeaf157891ddb022bd0daf8eb27c0cb8b6df5542e745d209f0ce617245e4583c59a561ed3216044d3afb38f8620ee94cdea656364923dcb140b5b  tesseract-ocr-3.04.01.tar.gz"