From ba96fd89fd310c88c2659edfce3c43c2ac4bc769 Mon Sep 17 00:00:00 2001 From: sudacode Date: Thu, 11 Dec 2025 12:39:30 -0800 Subject: [PATCH] add python-owocr --- python-owocr/.SRCINFO | 6 +++--- python-owocr/PKGBUILD | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/python-owocr/.SRCINFO b/python-owocr/.SRCINFO index 34ec0bd..3e15afa 100644 --- a/python-owocr/.SRCINFO +++ b/python-owocr/.SRCINFO @@ -2,14 +2,14 @@ pkgbase = python-owocr pkgdesc = OwOCR is a command-line text recognition tool that continuously scans for images and performs OCR (Optical Character Recognition) on them. Its main focus is Japanese, but it works for many other languages. pkgver = 1.20.3 pkgrel = 1 - url = https://pypi.org/project/owocr/ + url = https://gitea.suda.codes/sudacode/owocr arch = any license = GPL-3.0 makedepends = python-build makedepends = python-wheel makedepends = python-installer depends = python>=3.11 - source = https://files.pythonhosted.org/packages/source/o/owocr/owocr-1.20.3.tar.gz - sha256sums = 2dc2c82481c2c57afea18622ac97a96be844181a49a21a532649335f0b627053 + source = git+https://gitea.suda.codes/sudacode/owocr + sha256sums = SKIP pkgname = python-owocr diff --git a/python-owocr/PKGBUILD b/python-owocr/PKGBUILD index b5cf30c..2daed2f 100644 --- a/python-owocr/PKGBUILD +++ b/python-owocr/PKGBUILD @@ -5,19 +5,19 @@ pkgver=1.20.3 pkgrel=1 pkgdesc="OwOCR is a command-line text recognition tool that continuously scans for images and performs OCR (Optical Character Recognition) on them. Its main focus is Japanese, but it works for many other languages." arch=('any') -url="https://pypi.org/project/owocr/" +url="https://gitea.suda.codes/sudacode/owocr" license=('GPL-3.0') depends=('python>=3.11') makedepends=('python-build' 'python-wheel' 'python-installer') -source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name//-/_}/${_name//-/_}-$pkgver.tar.gz") -sha256sums=('2dc2c82481c2c57afea18622ac97a96be844181a49a21a532649335f0b627053') +source=("git+https://gitea.suda.codes/sudacode/owocr") +sha256sums=('SKIP') build() { - cd "${_name/-/_}-$pkgver" - python -m build --wheel --no-isolation + cd "$srcdir/$_name" + python -m build } package() { - cd "${_name//-/_}-$pkgver" + cd "${_name//-/_}" python -m installer --destdir="$pkgdir" dist/*.whl }