From 69fc7c5461ba60acfdac67c453846e2b7eaddecc Mon Sep 17 00:00:00 2001 From: Dan Theisen Date: Tue, 26 Jun 2018 04:00:42 -0700 Subject: user/password-store: new package --- user/password-store/APKBUILD | 64 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 user/password-store/APKBUILD 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 +# Contributor: Johannes Matheis +# Maintainer: Dan Theisen +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" -- cgit v1.2.3-70-g09d2