blob: ae4074860dc9267f70ed5335fb335d626d3d6385 (
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: Otreblan <otreblain@gmail.com>
_name=synthtiger
pkgname="python-$_name"
pkgver=1.2.1
pkgrel=1
pkgdesc="Synthetic text image generator for OCR model"
arch=('any')
url="https://github.com/clovaai/synthtiger"
license=('MIT')
groups=()
depends=(
"python-arabic-reshaper"
"python-blend-modes"
"python-fonttools"
"python-imgaug"
"python-numpy"
"python-opencv"
"python-pillow"
"python-pygame"
"python-bidi"
"python-pytweening"
"python-yaml"
"python-regex"
"python-scipy"
)
makedepends=("python-build" "python-installer" "python-wheel")
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
noextract=()
sha256sums=('8e0d225b32d4748f9aaf39aff4dc7c93081a6cea5214b0b90b463dd074240950')
build() {
cd "$srcdir/$_name-$pkgver"
python -m build --wheel --no-isolation
}
package() {
cd "$srcdir/$_name-$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$_name/LICENSE"
}
|