PKGBUILDs/community/cuneiform/PKGBUILD

35 lines
1.1 KiB
Bash
Raw Normal View History

2009-10-10 02:15:33 +00:00
# $Id: PKGBUILD 2009 2009-09-07 14:16:12Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Maxim Vuets <maxim.vuets@gmail.com>
pkgname=cuneiform
pkgver=0.8.0
_dpkgver=0.8
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/$pkgname-linux-$pkgver.tar.bz2 \
cuneiform.patch)
md5sums=('271c1adae56bf8b977bf7326f8a8a0bc'
'ad3e40904a50ea68e87017f1c0248aa0')
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"
}