Date: Tuesday, March 7, 2023 @ 20:14:53
  Author: alerque
Revision: 1416735

Initial add of python-fontmath, dependency for python-mutatormath

Added:
  python-fontmath/
  python-fontmath/repos/
  python-fontmath/trunk/
  python-fontmath/trunk/PKGBUILD

----------+
 PKGBUILD |   36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

Added: python-fontmath/trunk/PKGBUILD
===================================================================
--- python-fontmath/trunk/PKGBUILD                              (rev 0)
+++ python-fontmath/trunk/PKGBUILD      2023-03-07 20:14:53 UTC (rev 1416735)
@@ -0,0 +1,36 @@
+# Maintainer: Caleb Maclennan <[email protected]>
+# Contributor: Guillaume Horel <[email protected]>
+# Contributor: William Turner <[email protected]>
+
+_pyname=fontMath
+pkgname=python-${_pyname,,}
+pkgver=0.9.3
+pkgrel=2
+pkgdesc='A collection of objects that implement fast font, glyph, etc. math'
+arch=(any)
+url="https://github.com/robotools/$_pyname";
+license=(MIT)
+depends=(python-fonttools
+         python-setuptools-scm)
+checkdepends=(python-pytest)
+makedepends=(python-{build,installer,wheel})
+checkdepends=(python-pytest)
+_archive="$_pyname-$pkgver"
+source=("https://files.pythonhosted.org/packages/source/${_pyname::1}/$_pyname/$_archive.zip";)
+sha256sums=('6a5387cb7feb105958db2f5ceedc878513cc35bf3715e262090f0557be0c1b1c')
+
+build() {
+       cd "$_archive"
+       python -m build -wn
+}
+
+check() {
+       cd "$_archive"
+       PYTHONPATH=Lib pytest Lib/fontMath/test
+}
+
+package() {
+       cd "$_archive"
+       python -m installer -d "$pkgdir" dist/*.whl
+       install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" License.txt
+}

Reply via email to