diff options
author | Emil Lundberg | 2018-10-11 21:39:17 +0200 |
---|---|---|
committer | Emil Lundberg | 2018-10-11 21:39:17 +0200 |
commit | 24fb9971f5c79bf3a239b42b967e647cfd1f771b (patch) | |
tree | a1288d337323dd70d0650cd8fc3ba1176be8257a | |
download | aur-yubikey-manager-completion.tar.gz |
Initial commit
There will be many others
But this one is first
-rw-r--r-- | .SRCINFO | 9 | ||||
-rw-r--r-- | .gitattributes | 5 | ||||
-rw-r--r-- | .gitignore | 6 | ||||
-rw-r--r-- | PKGBUILD | 23 |
4 files changed, 43 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..b89978eae8e9 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,9 @@ +pkgbase = yubikey-manager-completion + pkgdesc = bash and zsh completion for ykman + pkgver = 0.1.0 + pkgrel = 1 + arch = any + license = GPL3 + depends = yubikey-manager + +pkgname = yubikey-manager-completion diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 000000000000..b4d31590d251 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,5 @@ +# Normalize line endings on checkin +* text=auto + +# Force a specific kind of line endings on checkout +*.sh text eol=lf diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..984f4e09498b --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +/pkg/ +/src/ +/*.tar.gz +/*.tar.gz.sig +/*.tar.xz +/*.tar.xz.sig diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..62e461d57553 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,23 @@ +# Maintainer: Emil Lundberg <emil@emlun.se> + +pkgname=yubikey-manager-completion +pkgver=0.1.0 +pkgrel=1 +pkgdesc="bash and zsh completion for ykman" +license=('GPL3') +arch=('any') +depends=('yubikey-manager') +source=() +sha256sums=() + +build() { + _YKMAN_COMPLETE=source ykman > "${srcdir}/ykman-bash-complete.sh" || true + _YKMAN_COMPLETE=source_zsh ykman > "${srcdir}/ykman-zsh-complete.sh" || true +} + +package() { + install -D -m444 "${srcdir}/ykman-bash-complete.sh" "${pkgdir}/usr/share/bash-completion/completions/ykman" + install -D -m444 "${srcdir}/ykman-zsh-complete.sh" "${pkgdir}/usr/share/zsh/site-functions/_ykman" +} + +# vim:set ts=2 sw=2 sts=2 et |