aboutsummaryrefslogtreecommitdiffstats
path: root/testing/keybase-client/APKBUILD
blob: a6c7bfc26256ee9a4a48d1760fccd6a720097031 (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
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=keybase-client
pkgver=2.5.0
_ver=${pkgver/_p/-}
pkgrel=1
pkgdesc="CLI client for keybase.io"
url="https://github.com/keybase/client"
arch="all"
license="BSD-3-Clause"
depends=""
depends_dev=""
makedepends="$depends_dev go"
install=""
subpackages=""
source="$pkgname-$pkgver.tar.gz::https://github.com/${pkgname/-//}/archive/v${_ver}.tar.gz"

builddir="$srcdir/client-${_ver}"
build() {
	cd "$srcdir"
	export GOPATH="$PWD"
	export GO15VENDOREXPERIMENT=1

	mkdir -p src/github.com/keybase
	cp -r "$srcdir/client-${_ver}" 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="05313c4373ffc8fc41097fabfd13fdbf4d0af789257bbbc4a9ff0500ab3ca9c9d5d50ab62bc38b7328aad3cbf631aa55fcd1a74b5dc73f3d31e76851733d7d5f  keybase-client-2.5.0.tar.gz"