Date: Friday, April 7, 2023 @ 04:49:16
Author: felixonmars
Revision: 1440568
archrelease: copy trunk to community-staging-any
Added:
python-yaspin/repos/community-staging-any/
python-yaspin/repos/community-staging-any/PKGBUILD
(from rev 1440567, python-yaspin/trunk/PKGBUILD)
----------+
PKGBUILD | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
Copied: python-yaspin/repos/community-staging-any/PKGBUILD (from rev 1440567,
python-yaspin/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-07 04:49:16 UTC (rev 1440568)
@@ -0,0 +1,30 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=python-yaspin
+pkgver=2.3.0
+pkgrel=2
+pkgdesc="Yet Another Terminal Spinner"
+url="https://github.com/pavdmyt/yaspin"
+license=('MIT')
+arch=('any')
+depends=('python-termcolor')
+makedepends=('python-build' 'python-installer' 'python-poetry-core')
+checkdepends=('python-pytest')
+source=("https://github.com/pavdmyt/yaspin/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('0e18b7eef0a2a0b76d0600763646f82231c0da671c05394af7d4ecaedf9c3b8b9fc7617b6b867e8c6cacdeb888194d72ac9c116c38888f9b88c8232926860ed6')
+
+build() {
+ cd yaspin-$pkgver
+ python -m build --no-isolation --wheel
+}
+
+check() {
+ cd yaspin-$pkgver
+ python -m pytest
+}
+
+package() {
+ cd yaspin-$pkgver
+ python -m installer --destdir="$pkgdir" dist/*.whl
+ install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}