aboutsummaryrefslogtreecommitdiffstats
path: root/testing/pass/APKBUILD
diff options
context:
space:
mode:
authorMikhail Ivko <ivko.mv@gmail.com>2016-09-07 23:16:54 +0700
committerNatanael Copa <ncopa@alpinelinux.org>2016-10-19 14:58:48 +0000
commitda6f1a4f6193095972a27f14d039aa9c9e8e9d6c (patch)
tree7b32446e62b0980aaf987794c77f3b0c132a885f /testing/pass/APKBUILD
parentafa68eaba8c1df05843e10d0a34fee9bbca60cbb (diff)
downloadaports-da6f1a4f6193095972a27f14d039aa9c9e8e9d6c.tar.bz2
aports-da6f1a4f6193095972a27f14d039aa9c9e8e9d6c.tar.xz
testing/pass: move from unmaintained
Diffstat (limited to 'testing/pass/APKBUILD')
-rw-r--r--testing/pass/APKBUILD72
1 files changed, 72 insertions, 0 deletions
diff --git a/testing/pass/APKBUILD b/testing/pass/APKBUILD
new file mode 100644
index 0000000000..1e22cf9dc0
--- /dev/null
+++ b/testing/pass/APKBUILD
@@ -0,0 +1,72 @@
+# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
+# Contributor: Johannes Matheis <jomat+alpinebuild@jmt.gr>
+# Maintainer: Johannes Matheis <jomat+alpinebuild@jmt.gr>
+pkgname=pass
+pkgver=1.6.5
+pkgrel=2
+pkgdesc="Stores, retrieves, generates, and synchronizes passwords securely"
+url="http://zx2c4.com/projects/password-store/"
+arch="noarch"
+license="GPL2"
+depends="bash"
+depends_dev=""
+makedepends="$depends_dev"
+install=""
+subpackages="$pkgname-doc
+ $pkgname-contrib
+ $pkgname-zsh-completion:bashcomp
+ $pkgname-fish-completion:fishcomp
+ $pkgname-bash-completion:zshcomp"
+source="http://git.zx2c4.com/password-store/snapshot/password-store-${pkgver}.tar.xz"
+
+_builddir="$srcdir/password-store-$pkgver"
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" \
+ FORCE_BASHCOMP=1 \
+ FORCE_ZSHCOMP=1 \
+ FORCE_FISHCOMP=1 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"
+ arch="noarch"
+
+ mkdir -p "$subpkgdir"/usr/share/bash-completion/completions
+ mv "$pkgdir"/usr/share/bash-completion/completions/* \
+ "$subpkgdir"/usr/share/bash-completion/completions/ || return 1
+}
+
+fishcomp() {
+ depends=""
+ pkgdesc="Fish completions for $pkgname"
+ install_if="$pkgname=$pkgver-r$pkgrel fish"
+ arch="noarch"
+
+ mkdir -p "$subpkgdir"/usr/share/fish/completions/
+ mv "$pkgdir"/usr/share/fish/vendor_completions.d/* \
+ "$subpkgdir"/usr/share/fish/completions/ || return 1
+}
+
+zshcomp() {
+ depends=""
+ pkgdesc="Zsh completions for $pkgname"
+ install_if="$pkgname=$pkgver-r$pkgrel zsh"
+ arch="noarch"
+
+ mkdir -p "$subpkgdir/usr/share/zsh/site-functions"
+ mv "$pkgdir"/usr/share/zsh/site-functions/* \
+ "$subpkgdir"/usr/share/zsh/site-functions || return 1
+}
+
+md5sums="2c4468360c678184051e76f03c2f6b04 password-store-1.6.5.tar.xz"
+sha256sums="337a39767e6a8e69b2bcc549f27ff3915efacea57e5334c6068fcb72331d7315 password-store-1.6.5.tar.xz"
+sha512sums="e28503b63c6d18a2f45f4a732fdec0380c2ac15e1778136ec5e7ac568662b09183d3ad4fd36ca7e87cfe74540f916cb6365695bdf665a39da4cbe86c4bde7a78 password-store-1.6.5.tar.xz"