[arch-commits] Commit in python-pynitrokey/trunk (PKGBUILD)
David Runge
dvzrv at archlinux.org
Sat Oct 31 19:57:03 UTC 2020
Date: Saturday, October 31, 2020 @ 19:57:03
Author: dvzrv
Revision: 737913
upgpkg: python-pynitrokey 0.4.1-2: Rebuild to add VERSION file.
Poetry seems to have created a broken setup.py which does not install the VERSION file.
Modified:
python-pynitrokey/trunk/PKGBUILD
----------+
PKGBUILD | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-10-31 19:01:17 UTC (rev 737912)
+++ PKGBUILD 2020-10-31 19:57:03 UTC (rev 737913)
@@ -3,7 +3,7 @@
_name=pynitrokey
pkgname=python-pynitrokey
pkgver=0.4.1
-pkgrel=1
+pkgrel=2
pkgdesc="A command line interface for the Nitrokey FIDO2 and Nitrokey Start"
arch=('any')
url="https://github.com/Nitrokey/pynitrokey/releases"
@@ -28,9 +28,11 @@
}
package() {
+ local _site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
cd "$pkgname-$pkgver"
python setup.py install --skip-build \
--optimize=1 \
--root="${pkgdir}"
+ install -vDm 644 "${_name}/VERSION" "${pkgdir}/${_site_packages}/${_name}/"
install -vDm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
}
More information about the arch-commits
mailing list