summaryrefslogtreecommitdiff
path: root/community/py3-compreffor/APKBUILD
blob: 2c77eb1ef5309ee222da98f3ae68b116931d6b2e (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.3
pkgrel=0
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="
626192b729b28366ea264ae28b82b6bf6b619baeb738acc42ce073872fd9af0d1e7c68c1a6a5e1e4ca234951e2b86513da2e4d02d322a03f991515544b471a01  py3-compreffor-0.5.3.tar.gz
3fc7f6b9686d1af7e45dd26c43920a7424759cea3c362d79ae72e7c6a36cc4ffb0f71806387a1d897dbdf5cc1ca00bcfc2661622ec9b7013b2ade5b400b4d2c2  0001-Drop-the-setuptools_git_ls_files-dependency.patch
"