aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-fonttools/APKBUILD
blob: 3387f493429e4ca393d7e9d9d35e8475bda89a7f (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
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer:
pkgname=py3-fonttools
_pkgname=fonttools
pkgver=4.0.1
pkgrel=0
pkgdesc="Converts OpenType and TrueType fonts to and from XML"
options="!check" # Require unpackaged 'brotli'
url="https://github.com/fonttools/fonttools"
arch="noarch"
license="MIT AND OFL-1.1"
depends="py3-setuptools py3-lxml py3-fs"
checkdepends="py3-pytest"
subpackages="$pkgname-doc"
source="$_pkgname-$pkgver.tar.gz::https://github.com/fonttools/fonttools/archive/$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

replaces="py-fonttools" # Backwards compatibility
provides="py-fonttools=$pkgver-r$pkgrel" # Backwards compatibility

prepare() {
	default_prepare
	# remove interpreter line
	sed -i '1d' Lib/fontTools/mtiLib/__init__.py
}

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="$PWD/build/lib" py.test-3
}

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

doc() {
	replaces="py-$_pkgname-doc" # Backwards compatibility
	provides="py-$_pkgname-doc=$pkgver-r$pkgrel" # Backwards compatibility
	default_doc
}

sha512sums="ae8a956ee03923ccbaf9d8950361cf0a2e3b86d61145298de07e8f4ed50680cea07dc56802663e3edf1fd9f18850983fac5685036f3c99fc454ea72591646eb0  fonttools-4.0.1.tar.gz"