diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/cuneiform/PKGBUILD |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/cuneiform/PKGBUILD')
-rw-r--r-- | community/cuneiform/PKGBUILD | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/community/cuneiform/PKGBUILD b/community/cuneiform/PKGBUILD new file mode 100644 index 000000000..5f780e969 --- /dev/null +++ b/community/cuneiform/PKGBUILD @@ -0,0 +1,32 @@ +# $Id: PKGBUILD 20123 2010-07-02 14:54:46Z spupykin $ +# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> +# Contributor: Maxim Vuets <maxim.vuets@gmail.com> + +pkgname=cuneiform +pkgver=1.0.0 +_dpkgver=1.0 +pkgrel=1 +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=('785232ffffad7d82446fbac08a1c3ef9') + +build() { + _SRC_ROOT="${srcdir}/${pkgname}-linux-${pkgver}" + cd "${_SRC_ROOT}" + sed -i 's#lib64#lib#' install_files.cmake + mkdir builddir + cd builddir + + cmake -DCMAKE_BUILD_TYPE=release -DCMAKE_INSTALL_PREFIX=/usr .. || return 1 + make || return 1 + make DESTDIR="${pkgdir}" install || return 1 + + mkdir -p "${pkgdir}/usr/share/licenses/cuneiform" + cp "${_SRC_ROOT}/cuneiform_src/Kern/license.txt" \ + "${pkgdir}/usr/share/licenses/cuneiform" +} |