aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2017-08-04 13:33:31 +0200
committerCarlo Landmeter <clandmeter@gmail.com>2017-08-04 13:33:37 +0200
commitf63b59ef79a2675b6a39e4305c1c4f0a58217b70 (patch)
tree1a3affdb670b3e470316191dfb1f3d248514b1f3 /testing
parentc57d1c0687e9b8a22ac2328dc7eb0b0436c42926 (diff)
downloadaports-f63b59ef79a2675b6a39e4305c1c4f0a58217b70.tar.bz2
aports-f63b59ef79a2675b6a39e4305c1c4f0a58217b70.tar.xz
testing/tesseract-git: new aport
Diffstat (limited to 'testing')
-rw-r--r--testing/tesseract-git/APKBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/testing/tesseract-git/APKBUILD b/testing/tesseract-git/APKBUILD
new file mode 100644
index 0000000000..be6d721ec5
--- /dev/null
+++ b/testing/tesseract-git/APKBUILD
@@ -0,0 +1,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"