diff options
Diffstat (limited to 'community/gopass/APKBUILD')
-rw-r--r-- | community/gopass/APKBUILD | 48 |
1 files changed, 18 insertions, 30 deletions
diff --git a/community/gopass/APKBUILD b/community/gopass/APKBUILD index f9d6d504eb7..f23edd255f0 100644 --- a/community/gopass/APKBUILD +++ b/community/gopass/APKBUILD @@ -2,7 +2,7 @@ # Contributor: Claas Störtenbecker <claas.stoertenbecker@gmail.com> # Maintainer: Anjandev Momi <anjan@momi.ca> pkgname=gopass -pkgver=1.9.2 +pkgver=1.15.13 pkgrel=0 pkgdesc="The slightly more awesome Standard Unix Password Manager for Teams. Written in Go." url="https://www.gopass.pw" @@ -10,48 +10,36 @@ arch="all" license="MIT" depends="gnupg git" makedepends="go ncurses" -source="$pkgname-$pkgver.tar.gz::https://github.com/gopasspw/gopass/archive/v$pkgver.tar.gz" -builddir="$srcdir/src/github.com/gopasspw/$pkgname" -options="chmod-clean" +source="$pkgname-$pkgver.tar.gz::https://github.com/gopasspw/gopass/archive/v$pkgver.tar.gz + enable-cgo.patch" +options="chmod-clean net" subpackages=" $pkgname-bash-completion $pkgname-zsh-completion $pkgname-fish-completion + $pkgname-doc " -case $CARCH in - mips64) - export GOFLAGS="${GOFLAGS/-buildmode=pie/}" # buildmode=pie is not supported on mips64 - ;; -esac +export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}" +export GOTMPDIR="${GOTMPDIR:-"$srcdir"}" +export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}" -prepare() { - mkdir -p "$srcdir/src/github.com/gopasspw" - mv "$srcdir/$pkgname-$pkgver" "$srcdir/src/github.com/gopasspw/gopass" - default_prepare +build() { + make build BUILDFLAGS="\$(BUILDFLAGS_NOPIE) $GOFLAGS" } check() { - GOPATH="$srcdir" make test-integration -} - -build() { - GOPATH="$srcdir" make build - - for completion in bash zsh fish; do - ./gopass completion $completion > $completion.completion; - done + # This fails if user already has a ~/.password-store + make test-integration } package() { - install -Dm755 "$builddir/$pkgname" -t "$pkgdir/usr/bin" - - install -Dm0644 "$builddir"/bash.completion \ - "$pkgdir"/usr/share/bash-completion/completions/gopass - install -Dm0644 "$builddir"/zsh.completion \ - "$pkgdir"/usr/share/zsh/site-functions/_gopass + make install DESTDIR="$pkgdir" PREFIX="/usr" BUILDFLAGS="\$(BUILDFLAGS_NOPIE) $GOFLAGS" install -Dm0644 "$builddir"/fish.completion \ - "$pkgdir"/usr/share/fish/completions/gopass.fish + "$pkgdir"/usr/share/fish/vendor_completions.d/gopass.fish } -sha512sums="90be234718c4c26ee6e92565ce609d5f075d5e574827e15ff57a6d9e71f1933add7d76aa26b39602d5a72485890bfe8e158dc89213098377899d0f721aacf1d7 gopass-1.9.2.tar.gz" +sha512sums=" +b7fcc7814ccad0cf0e3116eac848df080338e313ddcbb0cc8413cb353a1596b250aed427c97e791326e04c6c4241dbb529e112398218f2a905fc0fb48bc49963 gopass-1.15.13.tar.gz +0866b5378abc1c621d188c5dd6afe25841dd1459f176543f93d319c0e041e701a80e0d51c1977d2e6ed892b38730248217b2c9c7c53f3dddaa155f5c2a311456 enable-cgo.patch +" |