aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-ufolib2/APKBUILD
blob: 55ee17c0f4e1963db71a5c398225a5463ae9b143 (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
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=py3-ufolib2
pkgver=0.5.1
pkgrel=0
pkgdesc="UFO font library"
url="https://github.com/fonttools/ufoLib2"
arch="noarch"
license="Apache-2.0"
depends="python3 py3-attrs py3-fonttools"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-pytest-cov"
source="$pkgname-$pkgver.tar.gz::https://github.com/fonttools/ufoLib2/archive/v$pkgver.tar.gz"
builddir="$srcdir/ufoLib2-$pkgver"

build() {
	git init
	python3 setup.py build
}

check() {
	PYTHONPATH="$PWD/build/lib" pytest-3
}

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

sha512sums="6fbdc657482151626fc03a947de119c9fba777bd65eea237ce507ac90907b7eff7256d7b3d833f1d8cacdfa622ca448c530700027ef6a8668a2433d53709ff91  py3-ufolib2-0.5.1.tar.gz"