makedeb


python3-inquirer 3.4.0-0


Collection of common interactive command line user interfaces, based on Inquirer.js

Click here to go back to the commit logs for python3-inquirer.

Commit:


Hash: 43202f8e000e3a5845ff6a30b731945c589b3144

Message: 3.2.5 github url fix doc

Diff


diff --git a/.SRCINFO b/.SRCINFO
index cda7495..75436f3 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -3,7 +3,7 @@ pkgname = python3-inquirer
 pkgbase = python3-inquirer
 pkgdesc = Collection of common interactive command line user interfaces, based on Inquirer.js
 pkgrel = 0
-pkgver = 3.2.4
+pkgver = 3.2.5
 url = https://github.com/magmax/python-inquirer
 arch = all
 depends = python3-blessed
@@ -14,8 +14,8 @@ makedepends = python3-build
 makedepends = python3-installer
 makedepends = python3-poetry-core
 makedepends = python3-wheel
-source = python3-inquirer-3.2.4.tar.gz::https://files.pythonhosted.org/packages/source/i/inquirer/inquirer-3.2.4.tar.gz
-b2sums = bc0cbad51a446e309f64fbda9b14ef5f43d796d87fe1854349c1cff6b05badb5c118f9c405af7438daec7e1afa86b42a66d84b9bc2197dbed6ea30a2ccf3ea9b
+source = python3-inquirer-3.2.5.tar.gz::https://github.com/magmax/python-inquirer/archive/refs/tags/v3.2.5.tar.gz
+b2sums = c953ad7aef5ddbd2977bc0cdc8521e04df09e9d793474a5300b924b547a35a09e186759c7ce0e7c0314016f0d5c4b81e58a4a60b053420cb953b3838db3e3635
 makedepends = python3-build
 makedepends = python3-installer
 makedepends = python3-poetry-core
diff --git a/PKGBUILD b/PKGBUILD
index c023220..19449c9 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,37 +1,36 @@
 # Maintainer: exponential <echo ZXhwb25lbnRpYWxtYXRyaXhAcHJvdG9ubWFpbC5jb20K | base64 -d>
-# Contributor: gilcu3 < gilcu3 at gmail dot com >
-# Contributor: Luis Martinez <luis dot martinez at disroot dot org>
-# Contributor: KokaKiwi <kokakiwi+aur@kokakiwi.net>
+# Contributor: gilcu3 (AUR) < gilcu3 at gmail dot com >
+# Contributor: Luis Martinez (AUR) <luis dot martinez at disroot dot org>
+# Contributor: KokaKiwi (AUR) <kokakiwi+aur@kokakiwi.net>
 
 pkgname=python3-inquirer
-_pkg="${pkgname#python3-}"
-pkgver=3.2.4
+_pkgname=python-inquirer
+pkgver=3.2.5
 pkgrel=0
 pkgdesc="Collection of common interactive command line user interfaces, based on Inquirer.js"
 arch=('all')
-url='https://github.com/magmax/python-inquirer'
+url="https://github.com/magmax/${_pkgname}"
 license=('MIT')
 depends=('python3-blessed' 'python3-editor' 'python3-readchar')
 makedepends=('python3-build' 'python3-installer' 'python3-poetry-core' 'python3-wheel')
-source=("$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/i/$_pkg/$_pkg-$pkgver.tar.gz")
-b2sums=('bc0cbad51a446e309f64fbda9b14ef5f43d796d87fe1854349c1cff6b05badb5c118f9c405af7438daec7e1afa86b42a66d84b9bc2197dbed6ea30a2ccf3ea9b')
+source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
+b2sums=('c953ad7aef5ddbd2977bc0cdc8521e04df09e9d793474a5300b924b547a35a09e186759c7ce0e7c0314016f0d5c4b81e58a4a60b053420cb953b3838db3e3635')
 
 build() {
-	cd "$_pkg-$pkgver"
+	cd "${_pkgname}-${pkgver}"
 	python3 -m build --wheel --no-isolation
 }
 
 package() {
-	cd "$_pkg-$pkgver"
+	cd "${_pkgname}-${pkgver}"
 	python3 -m installer --destdir="$pkgdir" dist/*.whl #--optimize=1 --skip-build
 	# Manual remove local
 	mv "$pkgdir/usr/local/"* "$pkgdir/usr/"
 	rmdir "$pkgdir/usr/local"
 	# wheel BUG
 	cp -R src/inquirer "$pkgdir"/usr/lib/*/dist-packages/
+	python3 -m  compileall "$pkgdir"/usr/lib/*/dist-packages/inquirer
 	#doc
-	#install -Dm644 "LICENSE" "$pkgdir/usr/share/doc/$pkgname/LICENSE"
-	install -Dm644 "README.md" "$pkgdir/usr/share/doc/$pkgname/redme"
-	install -dv "$pkgdir/usr/share/doc/$pkgname/"
-	ln -sv "/usr/lib/python3/dist-packages/$_pkg-$pkgver.dist-info/LICENSE" "$pkgdir/usr/share/doc/$pkgname/"
+	install -Dm644 "LICENSE" "$pkgdir/usr/share/doc/$pkgname/LICENSE"
+	install -Dm644 "README.md" "$pkgdir/usr/share/doc/$pkgname/readme"
 }