aboutsummaryrefslogtreecommitdiffstats
path: root/testing/keybase-client/APKBUILD
blob: 988f372dc8a3bf9d06ccc7686292523fc15565c3 (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
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=keybase-client
pkgver=4.2.1
pkgrel=0
pkgdesc="CLI client for keybase.io"
url="https://github.com/keybase/client"
arch="all"
license="BSD-3-Clause"
makedepends="go"
options="!check" # need access to localhost:3000, which doesn't work with our infra
source="$pkgname-$pkgver.tar.gz::https://github.com/keybase/client/archive/v${pkgver}.tar.gz"
builddir="$srcdir/client-${pkgver}"

build() {
	cd "$srcdir"
	export GOPATH="$PWD"
	export GO15VENDOREXPERIMENT=1

	mkdir -p src/github.com/keybase
	cp -r "$srcdir/client-${pkgver}" src/github.com/keybase/client
	cd src/github.com/keybase/client/go/keybase
	go build -v -a -tags production -o "$srcdir/keybase"
}

package() {
	install -Dm755 "${srcdir}/keybase" "${pkgdir}/usr/bin/keybase"
}

sha512sums="cebed3975a85ad42bf7058625eaae5eb4c544d712d89c75f8d6d0d3b4bffae42e1bd449a778a993d4b21e2de39255c6d0aad50f437ee027f57faf8bfaa3cee70  keybase-client-4.2.1.tar.gz"