add python-owocr
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user