aboutsummaryrefslogtreecommitdiffstats
path: root/testing/pass/APKBUILD
blob: b1432fad2e1dd13fefe4699965627a7b6031111a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Contributor: Johannes Matheis <jomat+alpinebuild@jmt.gr>
# Maintainer: Johannes Matheis <jomat+alpinebuild@jmt.gr>
pkgname=pass
pkgver=1.6.5
pkgrel=0
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-completion $pkgname-contrib"
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
}

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
}

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"