update to standard based install

This commit is contained in:
2025-09-03 20:42:52 -07:00
parent 57d9ffe084
commit eb6a8900b2
2 changed files with 35 additions and 33 deletions

View File

@@ -1,17 +1,16 @@
pkgbase = mokuro pkgbase = mokuro
pkgdesc = Read Japanese manga inside browser with selectable text. pkgdesc = Read Japanese manga inside browser with selectable text.
pkgver = 0.2.2 pkgver = 0.2.2
pkgrel = 1 pkgrel = 2
url = https://github.com/kha-white/mokuro url = https://github.com/kha-white/mokuro
arch = x86_64 arch = x86_64
license = GPL-3.0 license = GPL-3.0
checkdepends = python-pytest checkdepends = python-pytest
makedepends = python-pip
makedepends = python-build makedepends = python-build
makedepends = python-wheel
makedepends = python-installer makedepends = python-installer
makedepends = python-setuptools makedepends = python-installer
depends = python>=3.6 depends = python>=3.6
depends = python-requests
depends = python-opencv depends = python-opencv
depends = python-torch-summary depends = python-torch-summary
depends = python-shapely depends = python-shapely
@@ -19,8 +18,6 @@ pkgbase = mokuro
depends = python-tqdm depends = python-tqdm
depends = python-loguru depends = python-loguru
depends = python-scipy depends = python-scipy
depends = python-pytorch
depends = python-torchvision
depends = python-pyclipper depends = python-pyclipper
depends = python-fire depends = python-fire
depends = python-natsort depends = python-natsort
@@ -29,6 +26,8 @@ pkgbase = mokuro
depends = python-transformers>=4.25.0 depends = python-transformers>=4.25.0
depends = python-safetensors>=0.4.1 depends = python-safetensors>=0.4.1
depends = python-manga-ocr depends = python-manga-ocr
depends = python-torchvision
optdepends = python-pytorch
source = https://files.pythonhosted.org/packages/source/m/mokuro/mokuro-0.2.2.tar.gz source = https://files.pythonhosted.org/packages/source/m/mokuro/mokuro-0.2.2.tar.gz
sha256sums = 7534d32d1e25ac7be8a828d328be9aceb06a05d3c3392721120410f4cff02fe3 sha256sums = 7534d32d1e25ac7be8a828d328be9aceb06a05d3c3392721120410f4cff02fe3

View File

@@ -1,14 +1,15 @@
# sudacode <suda@sudacode.com> # Maintainer: sudacode <suda@sudacode.com>
pkgname=mokuro pkgname=mokuro
_name=mokuro _name=mokuro
pkgver=0.2.2 pkgver=0.2.2
pkgrel=1 pkgrel=2
pkgdesc="Read Japanese manga inside browser with selectable text. " pkgdesc="Read Japanese manga inside browser with selectable text. "
arch=('x86_64') arch=('x86_64')
url="https://github.com/kha-white/mokuro" url="https://github.com/kha-white/mokuro"
license=('GPL-3.0') license=('GPL-3.0')
depends=( depends=(
'python>=3.6' 'python>=3.6'
'python-requests'
'python-opencv' 'python-opencv'
'python-torch-summary' 'python-torch-summary'
'python-shapely' 'python-shapely'
@@ -16,8 +17,6 @@ depends=(
'python-tqdm' 'python-tqdm'
'python-loguru' 'python-loguru'
'python-scipy' 'python-scipy'
'python-pytorch'
'python-torchvision'
'python-pyclipper' 'python-pyclipper'
'python-fire' 'python-fire'
'python-natsort' 'python-natsort'
@@ -26,8 +25,12 @@ depends=(
'python-transformers>=4.25.0' 'python-transformers>=4.25.0'
'python-safetensors>=0.4.1' 'python-safetensors>=0.4.1'
'python-manga-ocr' 'python-manga-ocr'
'python-torchvision'
) )
makedepends=('python-pip' 'python-build' 'python-wheel' 'python-installer' 'python-setuptools') optdepends=(
'python-pytorch'
)
makedepends=('python-build' 'python-installer' 'python-installer')
checkdepends=('python-pytest') checkdepends=('python-pytest')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name//-/_}/${_name//-/_}-$pkgver.tar.gz") source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name//-/_}/${_name//-/_}-$pkgver.tar.gz")
sha256sums=('7534d32d1e25ac7be8a828d328be9aceb06a05d3c3392721120410f4cff02fe3') sha256sums=('7534d32d1e25ac7be8a828d328be9aceb06a05d3c3392721120410f4cff02fe3')
@@ -39,10 +42,10 @@ check() {
build() { build() {
cd "$_name-$pkgver" cd "$_name-$pkgver"
python -m pip wheel . --no-deps --wheel-dir dist python -m build --wheel --no-isolation
} }
package() { package() {
cd "$_name-$pkgver" cd "$_name-$pkgver"
python -m pip install --no-deps --root="$pkgdir" --prefix=/usr --ignore-installed . python -m installer --destdir="$pkgdir" dist/*.whl
} }