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