aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tesseract-ocr/APKBUILD
blob: 7432d5e5f1d4b3240dcb091799d253bc2a713a45 (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
43
44
45
46
47
48
49
50
51
52
53
54
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=tesseract-ocr
_realver=3.03-rc1
pkgver=${_realver/-/_}
pkgrel=0
pkgdesc="open source OCR engine"
url="https://code.google.com/p/tesseract-ocr/"
arch="all"
license="Apache"
depends=""
depends_dev="leptonica-dev"
makedepends="$depends_dev automake autoconf libtool"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="http://dev.alpinelinux.org/archive/tesseract-ocr/tesseract-ocr-$pkgver.tar.gz"

_builddir="$srcdir"/$pkgname-$_realver

prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

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="534ea3f4e7ecdb0f296cf3d4d22ec7c7  tesseract-ocr-3.03_rc1.tar.gz"
sha256sums="c316e3945184bde0475fd52f779ae984b00e0784588b2a5ceacba555ea845ba3  tesseract-ocr-3.03_rc1.tar.gz"
sha512sums="201bc42436e2abb8ee7725f249be15b48031e2070efd4ad0938d00529f6322721a544afe6d15f4abe040bf6c8149de6b3184fd960063dc9c66abdfe985546a56  tesseract-ocr-3.03_rc1.tar.gz"