add packages

This commit is contained in:
2025-12-11 11:36:15 -08:00
parent 0ce343308b
commit 0903b599a3
11 changed files with 276 additions and 0 deletions

15
python-owocr/.SRCINFO Normal file
View File

@@ -0,0 +1,15 @@
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/
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
pkgname = python-owocr

1
python-owocr/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
owocr*

23
python-owocr/PKGBUILD Normal file
View File

@@ -0,0 +1,23 @@
# sudacode <suda@sudacode.com>
pkgname=python-owocr
_name=${pkgname#python-}
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/"
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')
build() {
cd "${_name/-/_}-$pkgver"
python -m build --wheel --no-isolation
}
package() {
cd "${_name//-/_}-$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl
}