aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2015-04-30 16:50:38 +0200
committerCarlo Landmeter <clandmeter@gmail.com>2015-04-30 16:50:44 +0200
commitb71162a8a09224207fb7b4bacdf4b23ec4067796 (patch)
tree22a3b98236aa406286b677b3159e42f7912222a4 /testing
parent8d85a4bc792065ba8a2247c11b917046d38c0fb9 (diff)
downloadaports-b71162a8a09224207fb7b4bacdf4b23ec4067796.tar.bz2
aports-b71162a8a09224207fb7b4bacdf4b23ec4067796.tar.xz
testing/tesseract-ocr: new aport
Diffstat (limited to 'testing')
-rw-r--r--testing/tesseract-ocr/APKBUILD55
1 files changed, 55 insertions, 0 deletions
diff --git a/testing/tesseract-ocr/APKBUILD b/testing/tesseract-ocr/APKBUILD
new file mode 100644
index 0000000000..37cfae88cd
--- /dev/null
+++ b/testing/tesseract-ocr/APKBUILD
@@ -0,0 +1,55 @@
+# 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
+ rm -f "$pkgdir"/usr/lib/*.la
+}
+
+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"