# Maintainer: Caleb Maclennan pkgname=gftools pkgver=0.9.53 pkgrel=1 pkgdesc='Misc tools for working with the Google Fonts library' arch=(any) url="https://github.com/googlefonts/$pkgname" license=(Apache) _py_deps=(axisregistry babelfont brotli browserstack-local fontfeatures fontmake fonttools fs # optdepends of fonttols required for [ufo] gflanguages glyphslib glyphsets jinja opentype-sanitizer protobuf pyaml pybrowserstack-screenshots pygit2 pygithub requests skia-pathops strictyaml tabulate ufolib2 ttfautohint-py unidecode vttlib) depends=(absl-py hyperglot python "${_py_deps[@]/#/python-}" statmake) makedepends=(python-{build,installer,wheel} python-setuptools-scm) _archive="$pkgname-$pkgver" source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/$pkgname/$_archive.tar.gz") sha256sums=('3520c9fe8d00de06cd6d6e7ef3d25be216c976792101a09018fe293872e958d5') build() { cd "$_archive" python -m build -wn } package() { cd "$_archive" python -m installer -d "$pkgdir" dist/*.whl }