Date: Saturday, April 8, 2023 @ 14:52:57
  Author: felixonmars
Revision: 1442646

archrelease: copy trunk to community-staging-any

Added:
  python-defcon/repos/community-staging-any/
  python-defcon/repos/community-staging-any/PKGBUILD
    (from rev 1442645, python-defcon/trunk/PKGBUILD)

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

Copied: python-defcon/repos/community-staging-any/PKGBUILD (from rev 1442645, 
python-defcon/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2023-04-08 14:52:57 UTC (rev 1442646)
@@ -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=3
+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