mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-20 08:02:26 +01:00
Stripping go binaries used to be an issue but nowadays it should work as expected. > We don't intentionally do anything that would make stripping a binary > not OK, and strip has worked for the past five years or so. https://groups.google.com/forum/?_escaped_fragment_=topic/golang-dev/ABppMOjYP6w#!topic/golang-dev/ABppMOjYP6w
35 lines
1.0 KiB
Plaintext
35 lines
1.0 KiB
Plaintext
# 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"
|