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: e01daf00ee6f471fb3ee035437d2e333acb3c4df

Message: update to 3.1.2

Diff


diff --git a/.SRCINFO b/.SRCINFO
index df95c83..b90135c 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,20 +1,18 @@
 pkgbase = python-inquirer
 	pkgdesc = Collection of common interactive command line user interfaces, based on Inquirer.js
-	pkgver = 2.10.0
+	pkgver = 3.1.2
 	pkgrel = 1
-	url = https://pypi.org/project/inquirer
+	url = https://github.com/magmax/python-inquirer
 	arch = any
 	license = MIT
 	makedepends = python-build
 	makedepends = python-installer
-	makedepends = python-wheel
 	makedepends = python-poetry-core
-	depends = python
+	makedepends = python-wheel
 	depends = python-blessed
-	depends = python-readchar
 	depends = python-editor
-	source = python-inquirer-2.10.0.tar.gz::https://github.com/magmax/python-inquirer/archive/v2.10.0.tar.gz
-	sha256sums = d30b09e260640deabb52c0d6a7c14efd9a50494301b30f19d16a706945983edd
-	b2sums = 41e0f39ec420e2bb9d12937973ac647cc192bcd9e1d6888bea5bc05633452417582af11ca76e9e093e2c4ecb17f800b6d223affead6a03be2cc00b369de60740
+	depends = python-readchar
+	source = python-inquirer-3.1.2.tar.gz::https://files.pythonhosted.org/packages/source/i/inquirer/inquirer-3.1.2.tar.gz
+	sha256sums = d5b4dafe5cbb9edf5991b77bd08053b683e13b600bf9174c0bda5a35b3e88ec5
 
 pkgname = python-inquirer
diff --git a/PKGBUILD b/PKGBUILD
index c130373..909e543 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,29 +1,28 @@
-# Maintainer: KokaKiwi <kokakiwi+aur@kokakiwi.net>
+# Maintainer: Luis Martinez <luis dot martinez at disroot dot org>
+# Contributor: KokaKiwi <kokakiwi+aur@kokakiwi.net>
 
-_pkgname=inquirer
-pkgname="python-$_pkgname"
-pkgver=2.10.0
+pkgname=python-inquirer
+_pkg="${pkgname#python-}"
+pkgver=3.1.2
 pkgrel=1
 pkgdesc="Collection of common interactive command line user interfaces, based on Inquirer.js"
 arch=('any')
-url="https://pypi.org/project/$_pkgname"
+url='https://github.com/magmax/python-inquirer'
 license=('MIT')
-depends=('python' 'python-blessed' 'python-readchar' 'python-editor')
-makedepends=('python-build' 'python-installer' 'python-wheel' 'python-poetry-core')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/magmax/python-inquirer/archive/v$pkgver.tar.gz")
-sha256sums=('d30b09e260640deabb52c0d6a7c14efd9a50494301b30f19d16a706945983edd')
-b2sums=('41e0f39ec420e2bb9d12937973ac647cc192bcd9e1d6888bea5bc05633452417582af11ca76e9e093e2c4ecb17f800b6d223affead6a03be2cc00b369de60740')
+depends=('python-blessed' 'python-editor' 'python-readchar')
+makedepends=('python-build' 'python-installer' 'python-poetry-core' 'python-wheel')
+source=("$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/i/$_pkg/$_pkg-$pkgver.tar.gz")
+sha256sums=('d5b4dafe5cbb9edf5991b77bd08053b683e13b600bf9174c0bda5a35b3e88ec5')
 
 build() {
-  cd "python-inquirer-$pkgver"
-
-  python -m build --wheel --no-isolation
+	cd "$_pkg-$pkgver"
+	python -m build --wheel --no-isolation
 }
 
 package() {
-  cd "python-inquirer-$pkgver"
-
-  python -m installer --destdir="$pkgdir" dist/*.whl
-
-  install -Dm0644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+	cd "$_pkg-$pkgver"
+	python -m installer --destdir="$pkgdir" dist/*.whl
+	local _site="$(python -c 'import site; print(site.getsitepackages()[0])')"
+	install -dv "$pkgdir/usr/share/licenses/$pkgname/"
+	ln -sv "$_site/$_pkg-$pkgver.dist-info/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/"
 }