[arch-commits] Commit in python-pytesseract/repos/community-any (PKGBUILD PKGBUILD)

Daniel M. Capella polyzen at gemini.archlinux.org
Wed Jan 26 00:05:54 UTC 2022


    Date: Wednesday, January 26, 2022 @ 00:05:53
  Author: polyzen
Revision: 1115610

archrelease: copy trunk to community-any

Added:
  python-pytesseract/repos/community-any/PKGBUILD
    (from rev 1115609, python-pytesseract/trunk/PKGBUILD)
Deleted:
  python-pytesseract/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   73 +++++++++++++++++++++++++++++++------------------------------
 1 file changed, 38 insertions(+), 35 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-01-26 00:05:29 UTC (rev 1115609)
+++ PKGBUILD	2022-01-26 00:05:53 UTC (rev 1115610)
@@ -1,35 +0,0 @@
-# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
-# Contributor: Christoph Brill <egore911 at gmail.com>
-
-_name=pytesseract
-pkgname=python-pytesseract
-pkgver=0.3.8
-pkgrel=3
-pkgdesc='Python wrapper for Google Tesseract'
-arch=('any')
-url=https://github.com/madmaze/pytesseract
-license=('Apache')
-depends=('python-pillow' 'tesseract')
-makedepends=('python-setuptools' )
-checkdepends=('python-pytest' 'tesseract-data-eng' 'tesseract-data-fra')
-source=("$url/archive/v$pkgver/$_name-v$pkgver.tar.gz")
-b2sums=('601610e14c259ab69ca0f4b17e3ea0478c8904c524c573b960859036684cdef5aaf16268e454e4d7f16e5b54d6d4522dd758642c70de3b23822f7e2bf4cfd861')
-
-build() {
-  cd $_name-$pkgver
-  python setup.py build
-}
-
-check() {
-  cd $_name-$pkgver
-  python -m venv --system-site-packages test-env
-  test-env/bin/python setup.py install --optimize=1 --skip-build
-  PATH="$PWD/test-env/bin:$PATH" test-env/bin/python -m pytest
-}
-
-package() {
-  cd $_name-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
-}
-
-# vim:set ts=2 sw=2 et:

Copied: python-pytesseract/repos/community-any/PKGBUILD (from rev 1115609, python-pytesseract/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-01-26 00:05:53 UTC (rev 1115610)
@@ -0,0 +1,38 @@
+# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
+# Contributor: Christoph Brill <egore911 at gmail.com>
+
+_name=pytesseract
+pkgname=python-pytesseract
+pkgver=0.3.9
+pkgrel=1
+pkgdesc='Python wrapper for Google Tesseract'
+arch=('any')
+url=https://github.com/madmaze/pytesseract
+license=('Apache')
+depends=('python-packaging' 'python-pillow' 'tesseract')
+makedepends=('python-build' 'python-install' 'python-setuptools' 'python-wheel')
+checkdepends=('python-pytest' 'tesseract-data-eng' 'tesseract-data-fra')
+source=("$url/archive/v$pkgver/$_name-v$pkgver.tar.gz")
+b2sums=('2b1c54df34d9717ffe342974c622f2f262a4f2f11d26512cad5a0a148c60f554ac02efba15c588bfbedc82d52eaf20c8f471d8d8d5fff8125544f10468483ad0')
+
+build() {
+  cd $_name-$pkgver
+  python -m build --wheel --skip-dependency-check --no-isolation
+}
+
+check() {
+  cd $_name-$pkgver
+  python -m venv --system-site-packages test-env
+  test-env/bin/python -m install --optimize=1 dist/*.whl
+  test-env/bin/python -m pytest
+}
+
+package() {
+  cd $_name-$pkgver
+  python -m install --optimize=1 --destdir="$pkgdir" dist/*.whl
+
+  # https://github.com/FFY00/python-install/pull/6
+  chmod +x "$pkgdir"/usr/bin/$_name
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list