summaryrefslogtreecommitdiff
path: root/libre/cuneiform/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'libre/cuneiform/PKGBUILD')
-rw-r--r--libre/cuneiform/PKGBUILD14
1 files changed, 8 insertions, 6 deletions
diff --git a/libre/cuneiform/PKGBUILD b/libre/cuneiform/PKGBUILD
index 4d83f3135..0bfc2a183 100644
--- a/libre/cuneiform/PKGBUILD
+++ b/libre/cuneiform/PKGBUILD
@@ -1,23 +1,26 @@
# $Id: PKGBUILD 200098 2016-12-18 10:27:54Z arojas $
# Maintainer (Arch): Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor (Arch): Maxim Vuets <maxim.vuets@gmail.com>
-# Maintainer: André Silva <emulatorman@parabola.nu>
+# Maintainer (Hyperbola): André Silva <emulatorman@hyperbola.info>
+# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
pkgname=cuneiform
pkgver=1.1.0
_dpkgver=1.1
-pkgrel=15.parabola1
+pkgrel=17.parabola1
pkgdesc="GNU/Linux port of an OCR system developed in Russia. Supports more than 20 languages, without nonfree data files"
arch=('i686' 'x86_64')
url="https://launchpad.net/cuneiform-linux"
license=('BSD')
depends=('imagemagick')
-makedepends=('cmake' 'gcc5')
+makedepends=('cmake')
mksource=(http://launchpad.net/cuneiform-linux/${_dpkgver}/${_dpkgver}/+download/cuneiform-linux-${pkgver}.tar.bz2)
source=("https://repo.parabola.nu/other/${pkgname}-libre/${pkgname}-libre-${pkgver}.tar.bz2"
+ 'build-fix.patch'
'libre.patch')
mksha256sums=('577e0d054de72086c33b4e8ae15033657776509b9a7af6eb272888eefcbdbbad')
sha256sums=('714b740d79c4799ec1bd340e3721d17f6d0e09ae54cd5667a01eddc8c4b758b4'
+ 'd2f746f91c79af8cf15ea1877f39881e3d16d7b15ef99b3106c3c2493acd95a5'
'9db29dcd11faf92ed68d4af35c659b6f5e96b0864c15342be8e014817af8be2d')
mksource() {
@@ -28,12 +31,13 @@ mksource() {
prepare() {
cd "${srcdir}/${pkgname}-${pkgver}"
+ sed -i 's#lib64#lib#' install_files.cmake
+ patch -p1 -i "$srcdir"/build-fix.patch
patch -p1 -i ../libre.patch
}
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
- sed -i 's#lib64#lib#' install_files.cmake
mkdir -p builddir
cd builddir
@@ -42,8 +46,6 @@ build() {
cmake \
-DCMAKE_BUILD_TYPE=release \
-DCMAKE_INSTALL_PREFIX=/usr \
- -DCMAKE_CXX_COMPILER=g++-5 \
- -DCMAKE_C_COMPILER=gcc-5 \
-DImageMagick_Magick++_LIBRARY=$LMAGICK \
-DImageMagick_Magick++_INCLUDE_DIR=/usr/include/ImageMagick-6 \
..