Date: Thursday, April 6, 2023 @ 14:29:52
Author: felixonmars
Revision: 1439235
archrelease: copy trunk to community-staging-any
Added:
python-straight.plugin/repos/community-staging-any/
python-straight.plugin/repos/community-staging-any/PKGBUILD
(from rev 1439232, python-straight.plugin/trunk/PKGBUILD)
----------+
PKGBUILD | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
Copied: python-straight.plugin/repos/community-staging-any/PKGBUILD (from rev
1439232, python-straight.plugin/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-06 14:29:52 UTC (rev 1439235)
@@ -0,0 +1,33 @@
+# Maintainer: Caleb Maclennan <[email protected]>
+
+_pipname=straight.plugin
+pkgname=python-$_pipname
+pkgver=1.5.0
+pkgrel=4
+pkgdesc='A simple namespaced plugin facility'
+arch=(any)
+url="https://github.com/ironfroggy/$_pipname"
+license=(MIT)
+depends=(python)
+makedepends=(python-{build,installer}
+ python-setuptools
+ python-wheel)
+_archive="$_pipname-$pkgver"
+source=("https://pypi.python.org/packages/source/${_pipname::1}/$_pipname/$_archive.tar.gz")
+sha256sums=('818a7641068932ed6436d0af0a3bb77bbbde29df0a7142c8bd1a249e7c2f0d38')
+
+build() {
+ cd "$_archive"
+ python -m build -wn
+}
+
+check() {
+ cd "$_archive"
+ PYTHON_PATH=. python tests.py
+}
+
+package() {
+ cd "$_archive"
+ python -m installer -d "$pkgdir" dist/*.whl
+ install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
+}