summaryrefslogtreecommitdiff
path: root/community-testing/cuneiform
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-09-13 23:14:39 +0000
committerroot <root@rshg054.dnsready.net>2011-09-13 23:14:39 +0000
commita712dc92423a31a4d3ab34fe660df550feebf442 (patch)
treead93851f4343f00cec2f901e4839da01a8b77efe /community-testing/cuneiform
parentb3a841a1f66eff75be29fba090b83ce4322d4721 (diff)
Tue Sep 13 23:14:39 UTC 2011
Diffstat (limited to 'community-testing/cuneiform')
-rw-r--r--community-testing/cuneiform/PKGBUILD36
1 files changed, 36 insertions, 0 deletions
diff --git a/community-testing/cuneiform/PKGBUILD b/community-testing/cuneiform/PKGBUILD
new file mode 100644
index 000000000..510f73bce
--- /dev/null
+++ b/community-testing/cuneiform/PKGBUILD
@@ -0,0 +1,36 @@
+# $Id: PKGBUILD 55414 2011-09-12 05:34:06Z ebelanger $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Contributor: Maxim Vuets <maxim.vuets@gmail.com>
+
+pkgname=cuneiform
+pkgver=1.1.0
+_dpkgver=1.1
+pkgrel=2
+pkgdesc="Linux port of an OCR system developed in Russia. Supports more than 20 languages."
+arch=('i686' 'x86_64')
+url="https://launchpad.net/cuneiform-linux"
+license=('BSD')
+depends=('imagemagick')
+makedepends=('cmake')
+source=(http://launchpad.net/cuneiform-linux/${_dpkgver}/${_dpkgver}/+download/cuneiform-linux-${pkgver}.tar.bz2)
+md5sums=('09fd160cdfc512f26442a7e91246598d')
+
+_SRC_ROOT="${srcdir}/${pkgname}-linux-${pkgver}"
+
+build() {
+ cd "${_SRC_ROOT}"
+ sed -i 's#lib64#lib#' install_files.cmake
+ mkdir builddir
+ cd builddir
+
+ cmake -DCMAKE_BUILD_TYPE=release -DCMAKE_INSTALL_PREFIX=/usr ..
+ make
+}
+
+package() {
+ cd "${_SRC_ROOT}"/builddir
+ make DESTDIR="${pkgdir}" install
+
+ install -Dm644 "${_SRC_ROOT}/cuneiform_src/Kern/license.txt" \
+ "${pkgdir}/usr/share/licenses/cuneiform/license.txt"
+}