Date: Saturday, April 8, 2023 @ 15:22:52
Author: felixonmars
Revision: 1442738
archrelease: copy trunk to community-staging-any
Added:
python-fontparts/repos/community-staging-any/
python-fontparts/repos/community-staging-any/PKGBUILD
(from rev 1442736, python-fontparts/trunk/PKGBUILD)
----------+
PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
Copied: python-fontparts/repos/community-staging-any/PKGBUILD (from rev
1442736, python-fontparts/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-08 15:22:52 UTC (rev 1442738)
@@ -0,0 +1,42 @@
+# Maintainer: Caleb Maclennan <[email protected]>
+# Contributor: Guillaume Horel <[email protected]>
+
+_pyname=fontParts
+pkgname=python-${_pyname,,}
+pkgver=0.11.0
+pkgrel=3
+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
+}