summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6f4eaa125fc32de42f80a46f458e887fd7b1160d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Maintainer: sudacode <suda@sudacode.com>
pkgname=mokuro
_name=mokuro
pkgver=0.2.2
pkgrel=2
pkgdesc="Read Japanese manga inside browser with selectable text. "
arch=('x86_64')
url="https://github.com/kha-white/mokuro"
license=('GPL-3.0')
depends=(
    'python>=3.6'
    'python-requests'
    'python-opencv'
    'python-torch-summary'
    'python-shapely'
    'python-yattag'
    'python-tqdm'
    'python-loguru'
    'python-scipy'
    'python-pyclipper'
    'python-fire'
    'python-natsort'
    'python-numpy'
    'python-pillow>=7.1.2'
    'python-transformers>=4.25.0'
    'python-safetensors>=0.4.1'
    'python-manga-ocr'
    'python-torchvision'
)
optdepends=(
    'python-pytorch'
)
makedepends=('python-build' 'python-installer' 'python-installer')
checkdepends=('python-pytest')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name//-/_}/${_name//-/_}-$pkgver.tar.gz")
sha256sums=('7534d32d1e25ac7be8a828d328be9aceb06a05d3c3392721120410f4cff02fe3')

check() {
    cd "$_name-$pkgver"
    pytest -o addopts=""
}

build() {
    cd "$_name-$pkgver"
    python -m build --wheel --no-isolation
}

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