aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-cu2qu/APKBUILD
blob: 92ce60b54f67be5fb581792c3a3c03f4db35bf18 (plain) (blame)
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
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=py3-cu2qu
pkgver=1.6.7
pkgrel=0
pkgdesc="Cubic-to-quadratic bezier curve conversion"
url="https://github.com/googlefonts/cu2qu"
arch="all"
license="Apache-2.0"
depends="python3 py3-fonttools py3-defcon"
makedepends="py3-setuptools python3-dev cython"
checkdepends="py3-pytest py3-coverage"
source="$pkgname-$pkgver.tar.gz::https://github.com/googlefonts/cu2qu/archive/v$pkgver.tar.gz"
builddir="$srcdir/cu2qu-$pkgver"

build() {
	git init
	export CU2QU_WITH_CYTHON=1
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="5140db9fad305942a45faa405a70bcee389b03257889b82faa4704c8250c27c81273d28fa859701b4d05c439673887f07960f225563eb651bf5a8a93f7743b05  py3-cu2qu-1.6.7.tar.gz"