[arch-commits] Commit in (4 files)

Felix Yan felixonmars at archlinux.org
Sat May 25 08:45:50 UTC 2019


    Date: Saturday, May 25, 2019 @ 08:45:46
  Author: felixonmars
Revision: 469902

addpkg: python-yaspin 0.14.3-1

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

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

Added: python-yaspin/trunk/PKGBUILD
===================================================================
--- python-yaspin/trunk/PKGBUILD	                        (rev 0)
+++ python-yaspin/trunk/PKGBUILD	2019-05-25 08:45:46 UTC (rev 469902)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-yaspin
+pkgver=0.14.3
+pkgrel=1
+pkgdesc="Yet Another Terminal Spinner"
+url="https://github.com/pavdmyt/yaspin"
+license=('MIT')
+arch=('x86_64')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/pavdmyt/yaspin/archive/v$pkgver.tar.gz")
+sha512sums=('f6fc5e8a39c6d1606f68c9f2521aaa9ba1023b7b7b598d5125fc8b0f0bb2b228c81898014270a985ddb0add8e5f6edc9453a15bddb8c4b29f9b75577a6f94b4b')
+
+build() {
+  cd yaspin-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd yaspin-$pkgver
+  python setup.py pytest
+}
+
+package() {
+  cd yaspin-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}


More information about the arch-commits mailing list