aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-compreffor/APKBUILD
blob: 9d061e0fe610c41c8c353a2e57c199db6d55bba6 (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
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=py3-compreffor
pkgver=0.5.0
pkgrel=0
pkgdesc="CFF table subroutinizer for FontTools"
url="https://github.com/googlefonts/compreffor"
arch="all"
license="Apache-2.0"
depends="python3 py3-fonttools"
makedepends="py3-setuptools py3-pytest cython python3-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/googlefonts/compreffor/archive/$pkgver.tar.gz"
builddir="$srcdir/compreffor-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
	rm -rf "$pkgdir"/usr/lib/python3*/site-packages/compreffor/test
}

sha512sums="52ea65d65424ac3c8d2ae1637b740fec0bb4cc131a5a0f99ccffc6055f10c5a0e0b26fc50f29ed388050eb86f77f7b90f79ac2d46c376de13b997e8b69b3465a  py3-compreffor-0.5.0.tar.gz"