[arch-commits] Commit in ocrfeeder/repos (2 files)

Felix Yan felixonmars at archlinux.org
Thu Nov 12 18:07:04 UTC 2020


    Date: Thursday, November 12, 2020 @ 18:07:03
  Author: felixonmars
Revision: 752945

archrelease: copy trunk to community-staging-any

Added:
  ocrfeeder/repos/community-staging-any/
  ocrfeeder/repos/community-staging-any/PKGBUILD
    (from rev 752944, ocrfeeder/trunk/PKGBUILD)

----------+
 PKGBUILD |   45 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 45 insertions(+)

Copied: ocrfeeder/repos/community-staging-any/PKGBUILD (from rev 752944, ocrfeeder/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-12 18:07:03 UTC (rev 752945)
@@ -0,0 +1,45 @@
+# Maintainer: Balló György <ballogyor+arch at gmail dot com>
+
+pkgname=ocrfeeder
+pkgver=0.8.3
+pkgrel=2
+pkgdesc="GTK+ document layout analysis and optical character recognition application"
+arch=('any')
+url="https://wiki.gnome.org/Apps/OCRFeeder"
+license=('GPL')
+depends=('ghostscript' 'goocanvas' 'gtk3' 'gtkspell3' 'iso-codes' 'python-gobject' 'python-odfpy'
+         'python-pillow' 'python-pyenchant' 'python-reportlab' 'python-sane' 'unpaper')
+makedepends=('git' 'gnome-common')
+optdepends=('tesseract: character recognition'
+            'ocrad: character recognition'
+            'gocr: character recognition'
+            'cuneiform: character recognition')
+_commit=32967ef99e7524f0b98d92f88342d16446ee93bd  # tags/0.8.3^0
+source=("git+https://gitlab.gnome.org/GNOME/ocrfeeder.git#commit=$_commit")
+sha256sums=('SKIP')
+
+pkgver() {
+  cd $pkgname
+  git describe --tags | sed 's/^release_//;s/_/./g;s/-/+/g'
+}
+
+prepare() {
+  cd $pkgname
+  NOCONFIGURE=1 ./autogen.sh
+}
+
+build() {
+  cd $pkgname
+  ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
+  make
+}
+
+check() {
+  make -C $pkgname check
+}
+
+package() {
+  cd $pkgname
+  make DESTDIR="$pkgdir" install
+  install -Dm644 resources/icons/org.gnome.OCRFeeder.svg "$pkgdir/usr/share/icons/hicolor/scalable/apps/org.gnome.OCRFeeder.svg"
+}



More information about the arch-commits mailing list