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 arch = x86_64
license = Apache-2.0 license = Apache-2.0
checkdepends = python-pytest checkdepends = python-pytest
makedepends = python-pip makedepends = python-build
makedepends = python-installer
makedepends = python-installer makedepends = python-installer
makedepends = python-wheel
depends = python>=3.6 depends = python>=3.6
depends = python-fire depends = python-fire
depends = python-fugashi depends = python-fugashi

View File

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