add packages
This commit is contained in:
23
python-owocr/PKGBUILD
Normal file
23
python-owocr/PKGBUILD
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user