update to standard based install
This commit is contained in:
4
.SRCINFO
4
.SRCINFO
@@ -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
|
||||||
|
|||||||
6
PKGBUILD
6
PKGBUILD
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user