[arch-commits] Commit in python-pyocr/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Sat Oct 26 04:30:21 UTC 2019
Date: Saturday, October 26, 2019 @ 04:30:21
Author: felixonmars
Revision: 520025
archrelease: copy trunk to community-staging-any
Added:
python-pyocr/repos/community-staging-any/
python-pyocr/repos/community-staging-any/PKGBUILD
(from rev 520020, python-pyocr/trunk/PKGBUILD)
----------+
PKGBUILD | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
Copied: python-pyocr/repos/community-staging-any/PKGBUILD (from rev 520020, python-pyocr/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-10-26 04:30:21 UTC (rev 520025)
@@ -0,0 +1,32 @@
+# Maintainer: Balló György <ballogyor+arch at gmail dot com>
+
+_pkgname=pyocr
+pkgname=python-pyocr
+pkgver=0.7.2
+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=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
+}
More information about the arch-commits
mailing list