aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tesseract-git/APKBUILD
blob: be6d721ec52037c5ce2ade2a4089e022a62fd93d (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=tesseract-git
_sha=08ec5775a149e5d8959f2bd2e9c78335b5062f0f
pkgver=20170804
pkgrel=0
pkgdesc="Tesseract Open Source OCR Engine"
url="https://github.com/tesseract-ocr/tesseract"
arch="all"
license="Apache-2.0"
depends=""
makedepends="cmake leptonica-dev tiff-dev icu-dev cairo-dev automake autoconf
	libtool autoconf-archive pango-dev cairo-dev"
install=""
subpackages="$pkgname-dev"
source="tesseract-$pkgver.tar.gz::https://github.com/tesseract-ocr/tesseract/archive/$_sha.tar.gz"
builddir="$srcdir/tesseract-$_sha"

build() {
        cd "$builddir"
        ./autogen.sh
        ./configure \
                --build=$CBUILD \
                --host=$CHOST \
                --prefix=/usr \
                --sysconfdir=/etc \
                --mandir=/usr/share/man \
                --infodir=/usr/share/info \
                --localstatedir=/var \
                --disable-static
        make
        make training
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	make DESTDIR="$pkgdir" training-install
}

sha512sums="a0efac488d1513db5a6bc889e97ae4d5e901477856598544148c5b348129c71dfbae0fe3a964daa0702c8090dffc9b433b4dcbf93246cd9c673335f5d10e8afc  tesseract-20170804.tar.gz"