[arch-commits] Commit in cuneiform/repos (4 files)

Sergej Pupykin spupykin at archlinux.org
Fri Feb 13 12:46:38 UTC 2015


    Date: Friday, February 13, 2015 @ 13:46:37
  Author: spupykin
Revision: 127661

archrelease: copy trunk to community-staging-i686, community-staging-x86_64

Added:
  cuneiform/repos/community-staging-i686/
  cuneiform/repos/community-staging-i686/PKGBUILD
    (from rev 127660, cuneiform/trunk/PKGBUILD)
  cuneiform/repos/community-staging-x86_64/
  cuneiform/repos/community-staging-x86_64/PKGBUILD
    (from rev 127660, cuneiform/trunk/PKGBUILD)

-----------------------------------+
 community-staging-i686/PKGBUILD   |   45 ++++++++++++++++++++++++++++++++++++
 community-staging-x86_64/PKGBUILD |   45 ++++++++++++++++++++++++++++++++++++
 2 files changed, 90 insertions(+)

Copied: cuneiform/repos/community-staging-i686/PKGBUILD (from rev 127660, cuneiform/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2015-02-13 12:46:37 UTC (rev 127661)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Maxim Vuets <maxim.vuets at gmail.com>
+
+pkgname=cuneiform
+pkgver=1.1.0
+_dpkgver=1.1
+pkgrel=13
+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/cuneiform-linux-${pkgver}.tar.bz2)
+md5sums=('09fd160cdfc512f26442a7e91246598d')
+
+build() {
+  cd "${srcdir}/${pkgname}-linux-${pkgver}"
+  sed -i 's#lib64#lib#' install_files.cmake
+  mkdir -p builddir
+  cd builddir
+
+  LMAGICK=`ls -1 /usr/lib/libMagick++*.so.?`
+
+  cmake \
+	-DCMAKE_BUILD_TYPE=release \
+	-DCMAKE_INSTALL_PREFIX=/usr \
+	-DImageMagick_Magick++_LIBRARY=$LMAGICK \
+	-DImageMagick_Magick++_INCLUDE_DIR=/usr/include/ImageMagick-6 \
+	..
+  make
+}
+
+check() {
+  ldd "${srcdir}/${pkgname}-linux-${pkgver}/builddir/cuneiform" | grep Magick >/dev/null
+}
+
+package() {
+  cd "${srcdir}/${pkgname}-linux-${pkgver}"/builddir
+  make DESTDIR="${pkgdir}" install
+
+  install -Dm644 "${srcdir}/${pkgname}-linux-${pkgver}/cuneiform_src/Kern/license.txt" \
+    "${pkgdir}/usr/share/licenses/cuneiform/license.txt"
+}

Copied: cuneiform/repos/community-staging-x86_64/PKGBUILD (from rev 127660, cuneiform/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2015-02-13 12:46:37 UTC (rev 127661)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Maxim Vuets <maxim.vuets at gmail.com>
+
+pkgname=cuneiform
+pkgver=1.1.0
+_dpkgver=1.1
+pkgrel=13
+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/cuneiform-linux-${pkgver}.tar.bz2)
+md5sums=('09fd160cdfc512f26442a7e91246598d')
+
+build() {
+  cd "${srcdir}/${pkgname}-linux-${pkgver}"
+  sed -i 's#lib64#lib#' install_files.cmake
+  mkdir -p builddir
+  cd builddir
+
+  LMAGICK=`ls -1 /usr/lib/libMagick++*.so.?`
+
+  cmake \
+	-DCMAKE_BUILD_TYPE=release \
+	-DCMAKE_INSTALL_PREFIX=/usr \
+	-DImageMagick_Magick++_LIBRARY=$LMAGICK \
+	-DImageMagick_Magick++_INCLUDE_DIR=/usr/include/ImageMagick-6 \
+	..
+  make
+}
+
+check() {
+  ldd "${srcdir}/${pkgname}-linux-${pkgver}/builddir/cuneiform" | grep Magick >/dev/null
+}
+
+package() {
+  cd "${srcdir}/${pkgname}-linux-${pkgver}"/builddir
+  make DESTDIR="${pkgdir}" install
+
+  install -Dm644 "${srcdir}/${pkgname}-linux-${pkgver}/cuneiform_src/Kern/license.txt" \
+    "${pkgdir}/usr/share/licenses/cuneiform/license.txt"
+}



More information about the arch-commits mailing list