aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorGalen Abell <galen@galenabell.com>2019-11-21 12:14:55 +0100
committerLeo <thinkabit.ukim@gmail.com>2019-11-21 12:18:59 +0100
commit0d9c2d0f49e2feddeaf1a1a8605cd13ef83d490e (patch)
tree44c136b567140bc0880cb08536b9f2c9cd193a7c /testing
parent6f2080df67a058763ac6d2a3616d07ba804570ee (diff)
downloadaports-0d9c2d0f49e2feddeaf1a1a8605cd13ef83d490e.tar.bz2
aports-0d9c2d0f49e2feddeaf1a1a8605cd13ef83d490e.tar.xz
testing/pass-otp: new aport
https://github.com/tadfisher/pass-otp A pass extension for managing one-time-password (OTP) tokens testing/
Diffstat (limited to 'testing')
-rw-r--r--testing/pass-otp/APKBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/testing/pass-otp/APKBUILD b/testing/pass-otp/APKBUILD
new file mode 100644
index 0000000000..f037579366
--- /dev/null
+++ b/testing/pass-otp/APKBUILD
@@ -0,0 +1,31 @@
+# Contributor: Galen Abell <galen@galenabell.com>
+# Maintainer: Galen Abell <galen@galenabell.com>
+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="git expect"
+subpackages="$pkgname-doc $pkgname-bash-completion:bashcomp"
+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
+}
+sha512sums="3d1417462998750ef1580169ed0e4b721b5f430cd86a678d1b6bc7b2ac123879902f7d22c28dc21e8a171ec80dfc51b6465d0dcc78cb009eb731651f2cb152f5 pass-otp-1.2.0.tar.gz"