# 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://gitea.suda.codes/sudacode/owocr"
license=('GPL-3.0')
depends=('python>=3.11')
makedepends=('python-build' 'python-wheel' 'python-installer')
source=("git+https://gitea.suda.codes/sudacode/owocr")
sha256sums=('SKIP')

build() {
    cd "$srcdir/$_name"
    python -m build
}

package() {
    cd "${_name//-/_}"
    python -m installer --destdir="$pkgdir" dist/*.whl
}
