aboutsummaryrefslogtreecommitdiffstats
path: root/testing/keybase-client/APKBUILD
blob: c9af4f536e7512864e75fa163039025eae52309e (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
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=keybase-client
pkgver=1.0.42
_ver=${pkgver/_p/-}
pkgrel=0
pkgdesc="Keybase command line client"
url="https://github.com/keybase/client"
arch="all"
license="BSD-3-Clause"
depends=""
depends_dev=""
makedepends="$depends_dev go"
install=""
subpackages=""
options="!strip"
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="f2731396190a0186060cdd391cc5e1e1ff434317d13d8adde354bd87aede5aff0f686aa051598538d10d2229ee02485f5f22ff9b4ad00168688e7b7a67e8e74c  keybase-client-1.0.42.tar.gz"