Date: Tuesday, March 7, 2023 @ 20:22:44
  Author: alerque
Revision: 1416739

Initial add of python-defcon, dependency of python-mutatormath

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

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

Added: python-defcon/trunk/PKGBUILD
===================================================================
--- python-defcon/trunk/PKGBUILD                                (rev 0)
+++ python-defcon/trunk/PKGBUILD        2023-03-07 20:22:44 UTC (rev 1416739)
@@ -0,0 +1,40 @@
+# Maintainer: Caleb Maclennan <[email protected]>
+# Contributor: Guillaume Horel <[email protected]>
+
+pkgname=python-defcon
+_pyname=${pkgname#python-}
+pkgver=0.10.2
+pkgrel=2
+pkgdesc='A set of UFO based objects for use in font editing applications'
+arch=(any)
+url="https://github.com/robotools/$_pyname";
+license=(MIT)
+_pydeps=(fonttools
+         fs # for fonttools[ufo]
+         unicodedata2 # for fonttools[unicode]
+         setuptools-scm)
+depends=(python
+         "${_pydeps[@]/#/python-}")
+makedepends=(python-{build,installer,wheel})
+checkdepends=(python-pytest)
+optdepends=('python-fontpens'
+            'python-lxml: enables faster UFO parsing')
+_archive="$_pyname-$pkgver"
+source=("https://files.pythonhosted.org/packages/source/${_pyname::1}/$_pyname/$_archive.zip";)
+sha256sums=('aee396e6d69e45ae65c8264781392d4c29116934b2737ad76d8230b40c182a44')
+
+build() {
+       cd "$_archive"
+       python -m build -wn
+}
+
+check() {
+       cd "$_archive"
+       PYTHONPATH=Lib pytest Lib/defcon/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