From d5effc9aadfb9ed5890376ca9497eef52fafcf83 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 14 Sep 2011 23:14:41 +0000 Subject: Wed Sep 14 23:14:41 UTC 2011 --- community/cuneiform/PKGBUILD | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'community/cuneiform') 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 # Contributor: Maxim Vuets 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" } -- cgit v1.2.3-54-g00ecf