aboutsummaryrefslogtreecommitdiffstats
path: root/testing/pass/APKBUILD
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2015-08-18 19:39:55 +0200
committerFrancesco Colista <fcolista@alpinelinux.org>2015-08-20 11:12:26 +0000
commitc4d1961958ddf30a102aad47edb24d6e3ca27f5d (patch)
tree85e79eeac42b32a18bd603825d3d85de706742e9 /testing/pass/APKBUILD
parent4788d4e12e26b18afbfb80e2f99b9153cb0db7b3 (diff)
downloadaports-c4d1961958ddf30a102aad47edb24d6e3ca27f5d.tar.bz2
aports-c4d1961958ddf30a102aad47edb24d6e3ca27f5d.tar.xz
testing/pass: split completion package
Diffstat (limited to 'testing/pass/APKBUILD')
-rw-r--r--testing/pass/APKBUILD66
1 files changed, 47 insertions, 19 deletions
diff --git a/testing/pass/APKBUILD b/testing/pass/APKBUILD
index b1432fad2e..9db8b38ec2 100644
--- a/testing/pass/APKBUILD
+++ b/testing/pass/APKBUILD
@@ -1,8 +1,9 @@
+# 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=0
+pkgrel=1
pkgdesc="Stores, retrieves, generates, and synchronizes passwords securely"
url="http://zx2c4.com/projects/password-store/"
arch="noarch"
@@ -11,32 +12,59 @@ depends="bash"
depends_dev=""
makedepends="$depends_dev"
install=""
-subpackages="$pkgname-doc $pkgname-completion $pkgname-contrib"
+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=0 \
- FORCE_ZSHCOMP=0 \
- FORCE_FISHCOMP=0 install
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" \
+ FORCE_BASHCOMP=1 \
+ FORCE_ZSHCOMP=1 \
+ FORCE_FISHCOMP=1 install
}
-completion() {
- pkgdesc="bash/fish/zsh completion files for pass"
- cd "$_builddir"
- make DESTDIR="$subpkgdir" \
- FORCE_BASHCOMP=1 \
- FORCE_ZSHCOMP=1 \
- FORCE_FISHCOMP=1 install-common
- rm -rf "$subpkgdir"/usr/share/man/
+contrib() {
+ pkgdesc="contrib files for pass"
+ mkdir -p "$subpkgdir"/usr/share
+ cp -a "$_builddir"/contrib "$subpkgdir"/usr/share/$pkgname
}
-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"
+ 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"