Date: Tuesday, March 7, 2023 @ 20:15:15
Author: alerque
Revision: 1416736
archrelease: copy trunk to community-any
Added:
python-fontmath/repos/community-any/
python-fontmath/repos/community-any/PKGBUILD
(from rev 1416735, python-fontmath/trunk/PKGBUILD)
----------+
PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
Copied: python-fontmath/repos/community-any/PKGBUILD (from rev 1416735,
python-fontmath/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2023-03-07 20:15:15 UTC (rev 1416736)
@@ -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
+}