summaryrefslogtreecommitdiff
path: root/user/password-store
diff options
context:
space:
mode:
authorDan Theisen <djt@hxx.in>2018-06-26 04:00:42 -0700
committerDan Theisen <djt@hxx.in>2018-06-26 04:01:00 -0700
commit69fc7c5461ba60acfdac67c453846e2b7eaddecc (patch)
treeae6eb506296619a7ef7b40a6df80bab7b07fc0c7 /user/password-store
parentcaca3f0aeb2159e8a644b43608d7d6fbb7887434 (diff)
downloadpackages-69fc7c5461ba60acfdac67c453846e2b7eaddecc.tar.gz
packages-69fc7c5461ba60acfdac67c453846e2b7eaddecc.tar.bz2
packages-69fc7c5461ba60acfdac67c453846e2b7eaddecc.tar.xz
packages-69fc7c5461ba60acfdac67c453846e2b7eaddecc.zip
user/password-store: new package
Diffstat (limited to 'user/password-store')
-rw-r--r--user/password-store/APKBUILD64
1 files changed, 64 insertions, 0 deletions
diff --git a/user/password-store/APKBUILD b/user/password-store/APKBUILD
new file mode 100644
index 000000000..744a02319
--- /dev/null
+++ b/user/password-store/APKBUILD
@@ -0,0 +1,64 @@
+# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
+# Contributor: Johannes Matheis <jomat+alpinebuild@jmt.gr>
+# Maintainer: Dan Theisen <djt@hxx.in>
+pkgname=password-store
+pkgver=1.7.2
+pkgrel=0
+pkgdesc="Stores, retrieves, generates, and synchronizes passwords securely"
+url="https://www.passwordstore.org"
+arch="noarch"
+options="!check" # this is a shell script and has no tests
+license="GPL-2.0-or-later"
+depends="gnupg bash tree xclip libqrencode"
+depends_dev=""
+makedepends="$depends_dev"
+subpackages="$pkgname-doc
+ $pkgname-contrib
+ $pkgname-bash-completion:bashcomp
+ $pkgname-fish-completion:fishcomp
+ $pkgname-zsh-completion:zshcomp"
+source="https://git.zx2c4.com/password-store/snapshot/$pkgname-$pkgver.tar.xz"
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" \
+ WITH_ALLCOMP=yes install
+}
+
+contrib() {
+ pkgdesc="contrib files for pass"
+ mkdir -p "$subpkgdir"/usr/share
+ cp -a "$builddir"/contrib "$subpkgdir"/usr/share/$pkgname
+}
+
+bashcomp() {
+ depends=""
+ pkgdesc="Bash completions for $pkgname"
+ install_if="$pkgname=$pkgver-r$pkgrel bash-completion"
+
+ mkdir -p "$subpkgdir"/usr/share/bash-completion/completions
+ mv "$pkgdir"/usr/share/bash-completion/completions/* \
+ "$subpkgdir"/usr/share/bash-completion/completions/
+}
+
+fishcomp() {
+ depends=""
+ pkgdesc="Fish completions for $pkgname"
+ install_if="$pkgname=$pkgver-r$pkgrel fish"
+
+ mkdir -p "$subpkgdir"/usr/share/fish/completions/
+ mv "$pkgdir"/usr/share/fish/vendor_completions.d/* \
+ "$subpkgdir"/usr/share/fish/completions/
+}
+
+zshcomp() {
+ depends=""
+ pkgdesc="Zsh completions for $pkgname"
+ install_if="$pkgname=$pkgver-r$pkgrel zsh"
+
+ mkdir -p "$subpkgdir/usr/share/zsh/site-functions"
+ mv "$pkgdir"/usr/share/zsh/site-functions/* \
+ "$subpkgdir"/usr/share/zsh/site-functions
+}
+
+sha512sums="e6719a7125af6ecd80fdbeb38b4e2e89e7358ff16e18739d68a04b72dfdf860294b54f7ec0ec9676a62d2e270db8f54784a357c82217a478694472f8136e3657 password-store-1.7.2.tar.xz"