[arch-commits] Commit in ocrfeeder/repos/community-any (PKGBUILD PKGBUILD)
Balló György
bgyorgy at archlinux.org
Mon Jun 7 11:25:52 UTC 2021
Date: Monday, June 7, 2021 @ 11:25:52
Author: bgyorgy
Revision: 957426
archrelease: copy trunk to community-any
Added:
ocrfeeder/repos/community-any/PKGBUILD
(from rev 957425, ocrfeeder/trunk/PKGBUILD)
Deleted:
ocrfeeder/repos/community-any/PKGBUILD
----------+
PKGBUILD | 107 +++++++++++++++++++++++++++++++------------------------------
1 file changed, 55 insertions(+), 52 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2021-06-07 11:25:46 UTC (rev 957425)
+++ PKGBUILD 2021-06-07 11:25:52 UTC (rev 957426)
@@ -1,52 +0,0 @@
-# Maintainer: Balló György <ballogyor+arch at gmail dot com>
-
-pkgname=ocrfeeder
-pkgver=0.8.3
-pkgrel=4
-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
-
- # Remove the usage of deprecated 'xml.etree.ElementTree.Element.getchildren' (FS#69470)
- git cherry-pick -n c0c460893961d5589f300645b32b5584a6c3f463
-
- # Port to GooCanvas 3.0
- sed -i "s/gi.require_version('GooCanvas', '2.0')/gi.require_version('GooCanvas', '3.0')/" src/ocrfeeder/studio/studioBuilder.py
-
- 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"
-}
Copied: ocrfeeder/repos/community-any/PKGBUILD (from rev 957425, ocrfeeder/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2021-06-07 11:25:52 UTC (rev 957426)
@@ -0,0 +1,55 @@
+# Maintainer: Balló György <ballogyor+arch at gmail dot com>
+
+pkgname=ocrfeeder
+pkgver=0.8.3
+pkgrel=5
+pkgdesc='GTK document layout analysis and optical character recognition application'
+arch=('any')
+url='https://wiki.gnome.org/Apps/OCRFeeder'
+license=('GPL3')
+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=('cuneiform: character recognition'
+ 'gocr: character recognition'
+ 'ocrad: character recognition'
+ 'tesseract: 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
+
+ # Remove the usage of deprecated 'xml.etree.ElementTree.Element.getchildren' (FS#69470)
+ git cherry-pick -n c0c460893961d5589f300645b32b5584a6c3f463
+
+ # Port to GooCanvas 3.0
+ git cherry-pick -n 2a580ed065764c96da34634fc9186f81234f8ca5
+
+ # Fix gocr parameters
+ git cherry-pick -n 2e1a634f35c03acffdbbbdd50c0d979578389057
+
+ NOCONFIGURE=1 ./autogen.sh
+}
+
+build() {
+ cd $pkgname
+ ./configure --prefix=/usr
+ 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