Date: Tuesday, March 7, 2023 @ 20:55:09 Author: alerque Revision: 1416755
Initial migration of python-fontparts from AUR Added: python-fontparts/ python-fontparts/repos/ python-fontparts/trunk/ python-fontparts/trunk/PKGBUILD ----------+ PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) Added: python-fontparts/trunk/PKGBUILD =================================================================== --- python-fontparts/trunk/PKGBUILD (rev 0) +++ python-fontparts/trunk/PKGBUILD 2023-03-07 20:55:09 UTC (rev 1416755) @@ -0,0 +1,42 @@ +# Maintainer: Caleb Maclennan <[email protected]> +# Contributor: Guillaume Horel <[email protected]> + +_pyname=fontParts +pkgname=python-${_pyname,,} +pkgver=0.11.0 +pkgrel=2 +pkgdesc='The replacement for RoboFab' +arch=(any) +url="https://github.com/robotools/${_pyname}" +license=(MIT) +_pydeps=(booleanoperations + defcon + fontmath + fontpens # for defcon[pens] + fonttools + fs # for fonttools[ufo] + lxml # for fonttools[lxml] + unicodedata2) # for fonttools[unicode] +depends=(python + "${_pydeps[@]/#/python-}") +makedepends=(python-{build,installer,wheel} + python-setuptools-scm) +_archive="$_pyname-$pkgver" +source=("https://files.pythonhosted.org/packages/source/${_pyname::1}/$_pyname/$_archive.zip") +sha256sums=('1dedc10085b1c0320cf348b19988f20079700caf5b05efea4bc3f8f935449048') + +build() { + cd "$_archive" + python -m build -wn +} + +check() { + cd "$_archive/Lib" + PYTHONPATH=. python "$_pyname/fontshell/test.py" +} + +package() { + cd "$_archive" + python -m installer -d "$pkgdir" dist/*.whl + install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE +}
