[arch-commits] Commit in python-wilderness/repos (2 files)

Felix Yan felixonmars at gemini.archlinux.org
Mon Aug 22 19:34:16 UTC 2022


    Date: Monday, August 22, 2022 @ 19:34:16
  Author: felixonmars
Revision: 1274864

archrelease: copy trunk to community-any

Added:
  python-wilderness/repos/community-any/
  python-wilderness/repos/community-any/PKGBUILD
    (from rev 1274863, python-wilderness/trunk/PKGBUILD)

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

Copied: python-wilderness/repos/community-any/PKGBUILD (from rev 1274863, python-wilderness/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2022-08-22 19:34:16 UTC (rev 1274864)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-wilderness
+pkgver=0.1.7
+pkgrel=1
+pkgdesc="Easy multi-level command line applications with man pages"
+url="https://github.com/GjjvdBurg/wilderness"
+license=('MIT')
+arch=('any')
+depends=('python')
+makedepends=('python-setuptools')
+source=("https://github.com/GjjvdBurg/wilderness/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('21e04bc2025d8c0d7f0cdcce99046f67d9949863457831a684bf2fd6bef26d566792b9c233cd2deba314738721409bb83ac8052cc842aedf56c8c8d4b532b724')
+
+build() {
+  cd wilderness-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd wilderness-$pkgver
+  # https://github.com/GjjvdBurg/wilderness/issues/5
+  python -m unittest discover || echo "Tests failed"
+}
+
+package() {
+  cd wilderness-$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