# Maintainer: Caleb Maclennan # Maintainer: Guillaume Horel pkgname=python-fontmake _pyname=${pkgname#python-} pkgver=3.1.2 pkgrel=1 pkgdesc='Compile fonts from sources (UFO, Glyphs) to binary (OpenType, TrueType)' arch=(any) url="https://github.com/googlefonts/$_pyname" license=(Apache) _pydeps=(attrs fontmath fonttools fs # for fonttools[ufo] glyphslib lxml # for fonttools[lxml] and defcon[lxml] ufo2ft ufolib2 unicodedata2) # for fonttools[unicode] depends=(python "${_pydeps[@]/#/python-}") checkdepends=(python-compreffor python-defcon python-mutatormath python-pytest python-skia-pathops) makedepends=(python-setuptools-scm) optdepends=(python-mutatormath python-skia-pathops) _archive="$_pyname-$pkgver" source=("https://files.pythonhosted.org/packages/source/${_pyname::1}/$_pyname/$_archive.zip") sha256sums=('69851d47c034def5b30353c755f87ffa921e49a8e5188864561ad0dca60b901d') build() { cd "$_archive" python setup.py build } check() { cd "$_archive" PYTHONPATH=Lib pytest tests } package() { cd "$_archive" python setup.py install --root="$pkgdir" --optimize=1 --skip-build }