update to standard based install

This commit is contained in:
2025-09-03 20:47:12 -07:00
parent b085bdb541
commit 84b2b46e74
2 changed files with 28 additions and 28 deletions

View File

@@ -6,9 +6,9 @@ pkgbase = python-manga-ocr
arch = x86_64
license = Apache-2.0
checkdepends = python-pytest
makedepends = python-pip
makedepends = python-build
makedepends = python-installer
makedepends = python-installer
makedepends = python-wheel
depends = python>=3.6
depends = python-fire
depends = python-fugashi

View File

@@ -7,7 +7,7 @@ pkgdesc="A tool for extracting text from manga images using OCR"
arch=('x86_64')
url="https://github.com/kha-white/manga-ocr"
license=('Apache-2.0')
makedepends=('python-pip' 'python-installer' 'python-wheel')
makedepends=('python-build' 'python-installer' 'python-installer')
depends=(
'python>=3.6'
'python-fire'
@@ -44,7 +44,7 @@ prepare() {
build() {
cd "${_pkgname//_/-}-$pkgver"
python -m pip wheel . --no-deps --wheel-dir dist
python -m build --wheel --no-isolation
}
check() {
@@ -54,5 +54,5 @@ check() {
package() {
cd "${_pkgname//_/-}-$pkgver"
python -m pip install --no-deps --root="$pkgdir" --prefix=/usr --ignore-installed .
python -m installer --destdir="$pkgdir" dist/*.whl
}