summaryrefslogtreecommitdiff
path: root/community/cuneiform
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-09-14 23:14:41 +0000
committerroot <root@rshg054.dnsready.net>2011-09-14 23:14:41 +0000
commitd5effc9aadfb9ed5890376ca9497eef52fafcf83 (patch)
treef630036c6ee41473fffa6086618dcc803d1fe391 /community/cuneiform
parenta712dc92423a31a4d3ab34fe660df550feebf442 (diff)
Wed Sep 14 23:14:41 UTC 2011
Diffstat (limited to 'community/cuneiform')
-rw-r--r--community/cuneiform/PKGBUILD20
1 files changed, 12 insertions, 8 deletions
diff --git a/community/cuneiform/PKGBUILD b/community/cuneiform/PKGBUILD
index 93e8496ed..2c5f9afb0 100644
--- a/community/cuneiform/PKGBUILD
+++ b/community/cuneiform/PKGBUILD
@@ -1,22 +1,23 @@
-# $Id: PKGBUILD 45314 2011-04-19 21:30:46Z spupykin $
+# $Id: PKGBUILD 55513 2011-09-13 21:33: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=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)
+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() {
- _SRC_ROOT="${srcdir}/${pkgname}-linux-${pkgver}"
cd "${_SRC_ROOT}"
sed -i 's#lib64#lib#' install_files.cmake
mkdir builddir
@@ -24,9 +25,12 @@ build() {
cmake -DCMAKE_BUILD_TYPE=release -DCMAKE_INSTALL_PREFIX=/usr ..
make
+}
+
+package() {
+ cd "${_SRC_ROOT}"/builddir
make DESTDIR="${pkgdir}" install
- mkdir -p "${pkgdir}/usr/share/licenses/cuneiform"
- cp "${_SRC_ROOT}/cuneiform_src/Kern/license.txt" \
- "${pkgdir}/usr/share/licenses/cuneiform"
+ install -Dm644 "${_SRC_ROOT}/cuneiform_src/Kern/license.txt" \
+ "${pkgdir}/usr/share/licenses/cuneiform/license.txt"
}