termux-packages/packages/keybase/build.sh
Henrik Grimler 6ef0e5876a Bump pending packages again
Seems previous build failed due to game-packages metadata being updated.
2020-06-07 07:24:03 +02:00

28 lines
1.0 KiB
Bash

TERMUX_PKG_HOMEPAGE=https://keybase.io
TERMUX_PKG_DESCRIPTION="Key directory that maps social media identities to encryption keys"
TERMUX_PKG_LICENSE="BSD 3-Clause"
TERMUX_PKG_VERSION=5.5.1
TERMUX_PKG_REVISION=3
TERMUX_PKG_SRCURL=https://github.com/keybase/client/archive/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=a65dc4b62fc1299dd17da52ddd2484fa1dc1e7d2a4776c3a6e112ee020980b12
TERMUX_PKG_REPLACES="kbfs"
TERMUX_PKG_CONFLICTS="kbfs"
termux_step_make_install() {
cd $TERMUX_PKG_SRCDIR
termux_setup_golang
mkdir -p .gopath/src/github.com/keybase
ln -sf "$PWD" .gopath/src/github.com/keybase/client
export GOPATH="$PWD/.gopath"
go build -v -tags 'production' -o keybase github.com/keybase/client/go/keybase
go build -v -tags 'production' -o git-remote-keybase github.com/keybase/client/go/kbfs/kbfsgit/git-remote-keybase
go build -v -tags 'production' -o kbfsfusebin github.com/keybase/client/go/kbfs/kbfsfuse
cp keybase $TERMUX_PREFIX/bin/keybase
cp git-remote-keybase $TERMUX_PREFIX/bin/git-remote-keybase
cp kbfsfusebin $TERMUX_PREFIX/bin/kbfsfuse
}