Date: Wednesday, December 19, 2018 @ 23:28:11
  Author: bgyorgy
Revision: 416803

archrelease: copy trunk to community-any

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

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

Copied: python-pyocr/repos/community-any/PKGBUILD (from rev 416802, 
python-pyocr/trunk/PKGBUILD)
===================================================================
--- repos/community-any/PKGBUILD                                (rev 0)
+++ repos/community-any/PKGBUILD        2018-12-19 23:28:11 UTC (rev 416803)
@@ -0,0 +1,32 @@
+# Maintainer: Balló György <ballogyor+arch at gmail dot com>
+
+_pkgname=pyocr
+pkgname=python-pyocr
+pkgver=0.5.3
+pkgrel=2
+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=5abd0a566a0518bea00cb4247c16e67d0d3c2d65  # tags/0.5.3^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