add python-owocr

This commit is contained in:
2025-12-11 12:39:30 -08:00
parent e6a7473e6e
commit ba96fd89fd
2 changed files with 9 additions and 9 deletions

View File

@@ -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. 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 pkgver = 1.20.3
pkgrel = 1 pkgrel = 1
url = https://pypi.org/project/owocr/ url = https://gitea.suda.codes/sudacode/owocr
arch = any arch = any
license = GPL-3.0 license = GPL-3.0
makedepends = python-build makedepends = python-build
makedepends = python-wheel makedepends = python-wheel
makedepends = python-installer makedepends = python-installer
depends = python>=3.11 depends = python>=3.11
source = https://files.pythonhosted.org/packages/source/o/owocr/owocr-1.20.3.tar.gz source = git+https://gitea.suda.codes/sudacode/owocr
sha256sums = 2dc2c82481c2c57afea18622ac97a96be844181a49a21a532649335f0b627053 sha256sums = SKIP
pkgname = python-owocr pkgname = python-owocr

View File

@@ -5,19 +5,19 @@ pkgver=1.20.3
pkgrel=1 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." 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') arch=('any')
url="https://pypi.org/project/owocr/" url="https://gitea.suda.codes/sudacode/owocr"
license=('GPL-3.0') license=('GPL-3.0')
depends=('python>=3.11') depends=('python>=3.11')
makedepends=('python-build' 'python-wheel' 'python-installer') makedepends=('python-build' 'python-wheel' 'python-installer')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name//-/_}/${_name//-/_}-$pkgver.tar.gz") source=("git+https://gitea.suda.codes/sudacode/owocr")
sha256sums=('2dc2c82481c2c57afea18622ac97a96be844181a49a21a532649335f0b627053') sha256sums=('SKIP')
build() { build() {
cd "${_name/-/_}-$pkgver" cd "$srcdir/$_name"
python -m build --wheel --no-isolation python -m build
} }
package() { package() {
cd "${_name//-/_}-$pkgver" cd "${_name//-/_}"
python -m installer --destdir="$pkgdir" dist/*.whl python -m installer --destdir="$pkgdir" dist/*.whl
} }