summaryrefslogtreecommitdiff
path: root/community/tesseract-ocr/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/tesseract-ocr/APKBUILD')
-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"