Balló György pushed to branch main at Arch Linux / Packaging / Packages / 
python-pyocr


Commits:
6b500947 by Balló György at 2024-08-04T12:15:38+02:00
Specify SPDX license, add config for nvchecker

- - - - -


3 changed files:

- .SRCINFO
- + .nvchecker.toml
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -4,17 +4,17 @@ pkgbase = python-pyocr
        pkgrel = 2
        url = https://gitlab.gnome.org/World/OpenPaperwork/pyocr
        arch = any
-       license = GPL3
+       license = GPL-3.0-or-later
        makedepends = git
        makedepends = python-build
        makedepends = python-installer
        makedepends = python-setuptools-scm
        makedepends = python-wheel
+       depends = python
        depends = python-pillow
-       depends = python-six
        optdepends = cuneiform: OCR backend
        optdepends = tesseract: OCR backend
-       source = 
git+https://gitlab.gnome.org/World/OpenPaperwork/pyocr.git#commit=ca191ba776743fe10a1c3dd99eaa82626ee4edc1
-       sha256sums = SKIP
+       source = 
git+https://gitlab.gnome.org/World/OpenPaperwork/pyocr.git#tag=0.8.5
+       b2sums = 
77888c4d3dbedede42f87562c52e651c77f56b6491073ba4d9ae6b2bf327a5cd3ea2903b5043c2398a8ebd6affc2ddb1db348f6435e1253089955091abb76d5d
 
 pkgname = python-pyocr


=====================================
.nvchecker.toml
=====================================
@@ -0,0 +1,3 @@
+[python-pyocr]
+source = "git"
+git = "https://gitlab.gnome.org/World/OpenPaperwork/pyocr.git";


=====================================
PKGBUILD
=====================================
@@ -1,32 +1,36 @@
 # Maintainer: Balló György <ballogyor+arch at gmail dot com>
 
-_pkgname=pyocr
 pkgname=python-pyocr
 pkgver=0.8.5
 pkgrel=2
 pkgdesc='Python wrapper for Tesseract and Cuneiform'
-arch=('any')
+arch=(any)
 url='https://gitlab.gnome.org/World/OpenPaperwork/pyocr'
-license=('GPL3')
-depends=('python-pillow' 'python-six')
-makedepends=('git' 'python-build' 'python-installer' 'python-setuptools-scm' 
'python-wheel')
-optdepends=('cuneiform: OCR backend'
-            'tesseract: OCR backend')
-_commit=ca191ba776743fe10a1c3dd99eaa82626ee4edc1
-source=("git+https://gitlab.gnome.org/World/OpenPaperwork/pyocr.git#commit=$_commit";)
-sha256sums=('SKIP')
-
-pkgver() {
-  cd $_pkgname
-  git describe --tags | sed 's/-/+/g'
-}
+license=(GPL-3.0-or-later)
+depends=(
+  python
+  python-pillow
+)
+makedepends=(
+  git
+  python-build
+  python-installer
+  python-setuptools-scm
+  python-wheel
+)
+optdepends=(
+  'cuneiform: OCR backend'
+  'tesseract: OCR backend'
+)
+source=("git+https://gitlab.gnome.org/World/OpenPaperwork/pyocr.git#tag=$pkgver";)
+b2sums=(77888c4d3dbedede42f87562c52e651c77f56b6491073ba4d9ae6b2bf327a5cd3ea2903b5043c2398a8ebd6affc2ddb1db348f6435e1253089955091abb76d5d)
 
 build() {
-  cd $_pkgname
+  cd pyocr
   python -m build --wheel --no-isolation
 }
 
 package() {
-  cd $_pkgname
+  cd pyocr
   python -m installer --destdir="$pkgdir" dist/*.whl
 }



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-pyocr/-/commit/6b50094748daa28f9a514afa39c1ad022c32e926

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-pyocr/-/commit/6b50094748daa28f9a514afa39c1ad022c32e926
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to