Date: Tuesday, November 10, 2020 @ 04:01:58
  Author: foutrelis
Revision: 748383

archrelease: copy trunk to community-staging-any

Added:
  python-pyocr/repos/community-staging-any/
  python-pyocr/repos/community-staging-any/PKGBUILD
    (from rev 748382, python-pyocr/trunk/PKGBUILD)

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

Copied: python-pyocr/repos/community-staging-any/PKGBUILD (from rev 748382, 
python-pyocr/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2020-11-10 04:01:58 UTC (rev 748383)
@@ -0,0 +1,32 @@
+# Maintainer: Balló György <ballogyor+arch at gmail dot com>
+
+_pkgname=pyocr
+pkgname=python-pyocr
+pkgver=0.7.2
+pkgrel=4
+pkgdesc="Python wrapper for Tesseract and Cuneiform"
+arch=(any)
+url="https://gitlab.gnome.org/World/OpenPaperwork/pyocr";
+license=(GPL3)
+depends=(python-pillow python-six)
+makedepends=(git python-setuptools)
+optdepends=('cuneiform: OCR backend'
+            'tesseract: OCR backend')
+_commit=f4b068cdf359186bfbed36959c53e9e52e2eda84  # tags/0.7.2^0
+source=("git+https://gitlab.gnome.org/World/OpenPaperwork/pyocr.git#commit=$_commit";)
+sha256sums=('SKIP')
+
+pkgver() {
+  cd $_pkgname
+  git describe --tags | sed 's/-/+/g'
+}
+
+build() {
+  cd $_pkgname
+  make
+}
+
+package() {
+  cd $_pkgname
+  python3 setup.py install --root="$pkgdir" --optimize=1
+}

Reply via email to