diff options
author | root <root@rshg054.dnsready.net> | 2013-04-02 00:05:43 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-04-02 00:05:43 -0700 |
commit | c9738c6a1d438f30dfa7363aa847343754f953ac (patch) | |
tree | 4922cc79f6695dbe35bdc4ce2c44a7a8d93cf053 /community/cuneiform/PKGBUILD | |
parent | c623429f33c434cb1cb11974d9e71f48dd5a881f (diff) |
Tue Apr 2 00:05:43 PDT 2013
Diffstat (limited to 'community/cuneiform/PKGBUILD')
-rw-r--r-- | community/cuneiform/PKGBUILD | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/community/cuneiform/PKGBUILD b/community/cuneiform/PKGBUILD index a60cedeae..a8aacbd3b 100644 --- a/community/cuneiform/PKGBUILD +++ b/community/cuneiform/PKGBUILD @@ -1,11 +1,11 @@ -# $Id: PKGBUILD 86575 2013-03-20 02:34:20Z eric $ +# $Id: PKGBUILD 87488 2013-04-01 16:09:28Z spupykin $ # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> # Contributor: Maxim Vuets <maxim.vuets@gmail.com> pkgname=cuneiform pkgver=1.1.0 _dpkgver=1.1 -pkgrel=7 +pkgrel=8 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" @@ -21,17 +21,24 @@ md5sums=('09fd160cdfc512f26442a7e91246598d') build() { cd "${_SRC_ROOT}" sed -i 's#lib64#lib#' install_files.cmake - mkdir builddir + mkdir -p builddir cd builddir + LMAGICK=`ls -1 /usr/lib/libMagick++*.so.?` + cmake \ -DCMAKE_BUILD_TYPE=release \ -DCMAKE_INSTALL_PREFIX=/usr \ - -DImageMagick_Magick++_LIBRARY=/usr/lib/libMagick++-Q16.so.7 \ + -DImageMagick_Magick++_LIBRARY=$LMAGICK \ + -DImageMagick_Magick++_INCLUDE_DIR=/usr/include/ImageMagick-6 \ .. make } +check() { + ldd ${_SRC_ROOT}/builddir/cuneiform | grep Magick >/dev/null +} + package() { cd "${_SRC_ROOT}"/builddir make DESTDIR="${pkgdir}" install |