termux-packages/packages/kbfs/build.sh

24 lines
845 B
Bash
Raw Normal View History

TERMUX_PKG_HOMEPAGE=https://keybase.io/docs/kbfs
TERMUX_PKG_DESCRIPTION="Keybase Filesystem"
2019-01-21 13:53:58 +01:00
TERMUX_PKG_LICENSE="BSD 3-Clause"
2019-01-03 03:49:57 +01:00
TERMUX_PKG_VERSION=2.11.0
TERMUX_PKG_SHA256=0e97cab1c90592035ec6763e22c78c08a95dd3467419d15b9e45b3d0887b594d
TERMUX_PKG_SRCURL=https://github.com/keybase/kbfs/archive/v${TERMUX_PKG_VERSION}.tar.gz
2018-10-08 22:25:25 +02:00
TERMUX_PKG_DEPENDS="keybase"
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/kbfs
export GOPATH="$PWD/.gopath"
go build -v -tags 'production' -o git-remote-keybase github.com/keybase/kbfs/kbfsgit/git-remote-keybase
go build -v -tags 'production' -o kbfsfusebin github.com/keybase/kbfs/kbfsfuse
cp git-remote-keybase $TERMUX_PREFIX/bin/git-remote-keybase
cp kbfsfusebin $TERMUX_PREFIX/bin/kbfsfuse
}