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

export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver

build() {
	python3 setup.py build_ext --inplace
	python3 setup.py build
}

check() {
	pytest
}

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

sha512sums="
c3d334c55a96556e16820f3a0fe2cae217d208afb3da25993fb1c3fe448b8a644673d57bc84c72a9b1bc0b66c69377e57c49a9b3e10754ebbf31e601b77e2760  py3-compreffor-0.5.2.tar.gz
3fc7f6b9686d1af7e45dd26c43920a7424759cea3c362d79ae72e7c6a36cc4ffb0f71806387a1d897dbdf5cc1ca00bcfc2661622ec9b7013b2ade5b400b4d2c2  0001-Drop-the-setuptools_git_ls_files-dependency.patch
"