# Contributor: Sören Tempel # Maintainer: pkgname=py3-fonttools _pkgname=fonttools pkgver=4.0.0 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="6799ea2d4bca71358a2ab6443d45c17fdb674aaa74092ef2beb0006a28525ca896dab420624995c54cf878306c3e547acf153eecde8c58e3cde6f8e657bf451e fonttools-4.0.0.tar.gz"