mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
35 lines
1.1 KiB
Bash
35 lines
1.1 KiB
Bash
|
# $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"
|
||
|
}
|