Commit 58df8e5e authored by Leo's avatar Leo

testing/pass-otp: remove shell completion definition

parent 54d0f3fd
# Contributor: Galen Abell <galen@galenabell.com>
# Maintainer: Galen Abell <galen@galenabell.com>
pkgname="pass-otp"
pkgver="1.2.0"
pkgname=pass-otp
pkgver=1.2.0
pkgrel=0
pkgdesc="A pass extension for managing one-time-password (OTP) tokens"
url="https://github.com/tadfisher/pass-otp"
......@@ -9,22 +9,13 @@ arch="noarch"
license="GPL-3.0-only"
depends="pass libqrencode oath-toolkit-oathtool"
checkdepends="git expect"
subpackages="$pkgname-doc $pkgname-bash-completion:bashcomp"
subpackages="$pkgname-doc $pkgname-bash-completion"
source="pass-otp-$pkgver.tar.gz::https://github.com/tadfisher/pass-otp/archive/v$pkgver.tar.gz"
check() {
make test
}
bashcomp() {
depends=""
pkgdesc="Bash completions for $pkgname"
install_if="$pkgname=$pkgver-r$pkgrel bash-completion"
mkdir -p "$subpkgdir"/usr/share
mv "$pkgdir"/usr/share/bash-completion "$subpkgdir"/usr/share
}
package() {
make DESTDIR="$pkgdir" BASHCOMPDIR="/usr/share/bash-completion/completions" install
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment