blob: 14db9bd7d25af325b16db285051791f763af4004 (
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
|
# Maintainer: taotieren <admin@taotieren.com>
pkgname=python-cu2qu-git
pkgver=1.6.7.post2.r0.g4cbc9b6
pkgrel=2
pkgdesc='Cubic-to-quadratic bezier curve conversion'
url='https://github.com/googlefonts/cu2qu'
license=('Apache')
arch=(any)
_pydeps=(defcon
fonttools
fs)
depends=(python
"${_pydeps[@]/#/python-}")
makedepends=(cython
git
python-{build,installer,wheel}
python-setuptools-scm)
checkdepends=(python-coverage
python-pytest-runner)
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("$pkgname::git+$url.git")
sha256sums=('SKIP')
pkgver() {
cd "$pkgname"
git describe --long --tags | sed 's/^v//g;s/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare()
{
git -C "${srcdir}/${pkgname}" clean -dfx
}
build() {
cd "$pkgname"
python -m build -wn
}
check() {
cd "$pkgname"
python -m unittest discover
}
package() {
cd "$pkgname"
python -m installer -d "$pkgdir" dist/*.whl
}
|