summaryrefslogtreecommitdiff
path: root/community/tesseract-ocr
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2016-08-25 07:26:11 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2016-08-25 07:55:47 +0000
commitbf9ae7e68343bd4ca8742c5efeb155783e5f53cd (patch)
tree3e2fc0e393397455d79e58f8d690397118174c8f /community/tesseract-ocr
parentc733852c04953d157183cf8c5bc7410d366d4eaf (diff)
downloadaports-bf9ae7e68343bd4ca8742c5efeb155783e5f53cd.zip
community/tesseract-ocr: moved from testing, changed url
Diffstat (limited to 'community/tesseract-ocr')
-rw-r--r--community/tesseract-ocr/APKBUILD42
1 files changed, 42 insertions, 0 deletions
diff --git a/community/tesseract-ocr/APKBUILD b/community/tesseract-ocr/APKBUILD
new file mode 100644
index 00000000000..bdd87b03405
--- /dev/null
+++ b/community/tesseract-ocr/APKBUILD
@@ -0,0 +1,42 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
+pkgname=tesseract-ocr
+pkgver=3.04.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
+}
+
+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"