-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPKGBUILD
72 lines (58 loc) · 1.6 KB
/
PKGBUILD
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#!/bin/bash
# Created from the original PKGBUILD by Caleb Maclennan <caleb@alerque.com> and Guillaume Horel <guillaume.horel@gmail.com>
# Disable various shellcheck rules that produce false positives in this file.
# Repository rules should be added to the .shellcheckrc file located in the
# repository root directory, see https://github.com/koalaman/shellcheck/wiki
# and https://archiv8.github.io for further information.
# shellcheck disable=SC2034,SC2154
# ToDo: Add files: User documentation
# ToDo: Add files: Tooling
# FixMe: Namcap warnings and errors
# Maintainer: Ross Clark <https://github.com/Archiv8/python-cu2qu/discussions>
# Contributor: Ross Clark <https://github.com/Archiv8/python-cu2qu/discussions>
_langname="python"
_relname="cu2qu"
pkgname="${_langname}-${_relname}"
pkgver=1.6.7.post1
pkgrel=2
pkgdesc="Cubic-to-quadratic bezier curve conversion"
arch=(
"any"
)
url="https://github.com/googlefonts/cu2qu"
license=(
"Apache"
)
depends=(
"python"
"python-defcon"
"python-fonttools"
"python-fs"
)
makedepends=(
"cython"
"python-setuptools-scm"
)
checkdepends=(
"python-coverage"
"python-pytest-runner"
)
_tarname="$_relname-$pkgver"
source=(
"https://files.pythonhosted.org/packages/source/${_relname::1}/$_relname/$_tarname.zip"
)
sha512sums=(
"a0dbed28403ae2bbdbf4719d9e34d5861250dc1510129d658b336d773a5153e0955d5f2ff018f5f93d88394658918fad2a58aebb99cef998d4cf9128a300f489"
)
build() {
cd "$_tarname"
python setup.py build
}
check() {
cd "$_tarname"
python setup.py test
}
package() {
cd "$_tarname"
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
}