Subject: [PATCH] testing/pass-otp: new aport

From: Galen Abell <[email-masked]>
Date: Thu, 21 Nov 2019 12:14:55 +0100

https://github.com/tadfisher/pass-otp
A pass extension for managing one-time-password (OTP) tokens
testing/
---
 testing/pass-otp/APKBUILD | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)
 create mode 100644 testing/pass-otp/APKBUILD

diff --git a/testing/pass-otp/APKBUILD b/testing/pass-otp/APKBUILD
new file mode 100644
index 0000000000..3c6dec1de8
--- /dev/null
+++ b/testing/pass-otp/APKBUILD
@@ -0,0 +1,32 @@
+# Contributor: Galen Abell <[email-masked]>
+# Maintainer: Galen Abell <[email-masked]>
+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"
+arch="noarch"
+license="GPL-3.0-only"
+depends="pass libqrencode oath-toolkit-oathtool"
+checkdepends="pass git oath-toolkit-oathtool expect"
+subpackages="$pkgname-doc $pkgname-bash-completion:bashcomp"
+source="$pkgname-$pkgver.tar.gz::https://github.com/tadfisher/$pkgname/archive/v$pkgver.tar.gz"
+builddir="$srcdir/$pkgname-$pkgver"
+
+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
+}
+sha512sums="3d1417462998750ef1580169ed0e4b721b5f430cd86a678d1b6bc7b2ac123879902f7d22c28dc21e8a171ec80dfc51b6465d0dcc78cb009eb731651f2cb152f5  pass-otp-1.2.0.tar.gz"
-- 
2.24.0