desktop/cuneiform/PKGBUILD

38 lines
1.1 KiB
Bash
Raw Normal View History

pkgname=cuneiform
pkgver=1.1.0
_dpkgver=1.1
2016-06-07 15:45:27 +08:00
pkgrel=5
pkgdesc="Linux port of an OCR system developed in Russia. Supports more than 20 languages."
arch=('x86_64')
url="https://launchpad.net/cuneiform-linux"
2013-07-27 18:51:47 +08:00
screenshot=("http://i1-win.softpedia-static.com/screenshots/CuneiForm_3.png")
license=('BSD')
depends=('imagemagick' 'fftw')
2016-06-07 15:45:27 +08:00
makedepends=('cmake')
source=(http://launchpad.net/cuneiform-linux/${_dpkgver}/${_dpkgver}/+download/cuneiform-linux-${pkgver}.tar.bz2)
2013-07-27 18:51:47 +08:00
md5sums=('09fd160cdfc512f26442a7e91246598d')
build() {
2013-07-27 18:51:47 +08:00
cd "${pkgname}-linux-${pkgver}"
sed -i 's#lib64#lib#' install_files.cmake
2016-06-07 15:45:27 +08:00
mkdir -p builddir && cd builddir
2013-07-27 18:51:47 +08:00
LMAGICK=`ls -1 /usr/lib/libMagick++*.so.?`
cmake -DCMAKE_BUILD_TYPE=release \
2016-06-07 15:45:27 +08:00
-DCMAKE_INSTALL_PREFIX=/usr \
-DImageMagick_Magick++_LIBRARY=$LMAGICK \
-DImageMagick_Magick++_INCLUDE_DIR=/usr/include/ImageMagick-6 \
..
make
}
package() {
2013-07-27 18:51:47 +08:00
cd "${pkgname}-linux-${pkgver}"/builddir
make DESTDIR="${pkgdir}" install
mkdir -p "${pkgdir}/usr/share/licenses/cuneiform"
2013-07-27 18:51:47 +08:00
cp "${srcdir}/${pkgname}-linux-${pkgver}/cuneiform_src/Kern/license.txt" \
"${pkgdir}/usr/share/licenses/cuneiform"
}