[arch-commits] Commit in (4 files)
Felix Yan
felixonmars at gemini.archlinux.org
Mon Aug 22 19:33:55 UTC 2022
Date: Monday, August 22, 2022 @ 19:33:54
Author: felixonmars
Revision: 1274863
addpkg: python-wilderness 0.1.7-1
Added:
python-wilderness/
python-wilderness/repos/
python-wilderness/trunk/
python-wilderness/trunk/PKGBUILD
----------+
PKGBUILD | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
Added: python-wilderness/trunk/PKGBUILD
===================================================================
--- python-wilderness/trunk/PKGBUILD (rev 0)
+++ python-wilderness/trunk/PKGBUILD 2022-08-22 19:33:54 UTC (rev 1274863)
@@ -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