[arch-commits] Commit in yubikey-manager/trunk (PKGBUILD)

Christian Hesse eworm at archlinux.org
Wed Jul 31 10:14:33 UTC 2019


    Date: Wednesday, July 31, 2019 @ 10:14:32
  Author: eworm
Revision: 495515

upgpkg: yubikey-manager 3.0.0-2

add completions for bash and zsh

Modified:
  yubikey-manager/trunk/PKGBUILD

----------+
 PKGBUILD |   12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-07-31 09:51:31 UTC (rev 495514)
+++ PKGBUILD	2019-07-31 10:14:32 UTC (rev 495515)
@@ -4,7 +4,7 @@
 
 pkgname='yubikey-manager'
 pkgver=3.0.0
-pkgrel=1
+pkgrel=2
 pkgdesc='Python library and command line tool for configuring a YubiKey'
 arch=('any')
 url='https://developers.yubico.com/yubikey-manager/'
@@ -22,16 +22,26 @@
 
 build() {
 	cd "${pkgname}-${pkgver}"
+
 	python setup.py build
+
+	_YKMAN_COMPLETE=source ./kman > "${srcdir}/ykman-bash-complete" || true
+	_YKMAN_COMPLETE=source_zsh ./ykman > "${srcdir}/ykman-zsh-complete" || true
 }
 
 check(){
 	cd "${pkgname}-${pkgver}"
+
 	python setup.py test
 }
 
 package() {
 	cd "${pkgname}-${pkgver}"
+
 	python setup.py install --root="${pkgdir}/" --optimize=1 --skip-build
+
 	install -D -m0644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
+
+	install -D -m0644 "${srcdir}/ykman-bash-complete" "${pkgdir}/usr/share/bash-completion/completions/ykman"
+	install -D -m0644 "${srcdir}/ykman-zsh-complete" "${pkgdir}/usr/share/zsh/site-functions/_ykman"
 }



More information about the arch-commits mailing list