# Maintainer: Caleb Maclennan pkgname=fontbakery pkgver=0.12.1 pkgrel=1 pkgdesc='A command-line tool for checking the quality of font projects' arch=(any) url="https://github.com/googlefonts/$pkgname" license=(Apache) _py_deps=(axisregistry beautifulsoup4 beziers cmarkgfm collidoscope defcon fonttools fs # optdepends of fonttols required for [ufo] gflanguages glyphsets lxml opentype-sanitizer protobuf pyyaml requests rich stringbrewer toml ufo2ft unicodedata2 # optdepends of fonttools required for [unicode] vharfbuzz) depends=(dehinter font-v python ttfautohint ufolint) depends+=("${_py_deps[@]/#/python-}") makedepends=(python-{build,installer,wheel} python-setuptools-scm) _archive="$pkgname-$pkgver" # source=("$_archive.tgz::$url/archive/v$pkgver.tar.gz") source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/$pkgname/$_archive.tar.gz") sha256sums=('c790e4ef12e0ad6a2f96f1a686b16d56448e18043fc1d67f1c635876e189ceb3') build() { cd "$_archive" python -m build -wn } package() { cd "$_archive" python -m installer -d "$pkgdir" dist/*.whl }