keybase: Update to 5.9.3

This commit is contained in:
Tee KOBAYASHI 2022-02-28 13:51:31 +09:00 committed by xtkoba
parent 6246ade463
commit 12eb920db0
1 changed files with 13 additions and 18 deletions

View File

@ -2,32 +2,27 @@ 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_MAINTAINER="@termux"
TERMUX_PKG_VERSION=5.8.1
TERMUX_PKG_VERSION=5.9.3
TERMUX_PKG_SRCURL=https://github.com/keybase/client/archive/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=25539ff5b3bad939c9a481ccae89913c1d14aab7f2ac9756a4c231b01ce3fc61
TERMUX_PKG_SHA256=6cc978eb0cb393dbc62623652283dde73c8eb6082bfbfe615177dd27c3f6755d
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_REPLACES="kbfs"
TERMUX_PKG_CONFLICTS="kbfs"
TERMUX_PKG_BUILD_IN_SRC=true
termux_step_make() {
termux_setup_golang
cd $TERMUX_PKG_SRCDIR
mkdir -p .gopath/src/github.com/keybase
ln -sf "$PWD" .gopath/src/github.com/keybase/client
export GOPATH="$PWD/.gopath"
# https://github.com/keybase/client/issues/24479#issuecomment-803013019
go env -w GO111MODULE=auto
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
cd go
go mod init || :
go mod tidy
mkdir .bin
go build -v -tags 'production' -o ./.bin/keybase ./keybase
go build -v -tags 'production' -o ./.bin/git-remote-keybase \
./kbfs/kbfsgit/git-remote-keybase
go build -v -tags 'production' -o ./.bin/kbfsfuse ./kbfs/kbfsfuse
}
termux_step_make_install() {
cp $TERMUX_PKG_SRCDIR/keybase $TERMUX_PREFIX/bin/keybase
cp $TERMUX_PKG_SRCDIR/git-remote-keybase $TERMUX_PREFIX/bin/git-remote-keybase
cp $TERMUX_PKG_SRCDIR/kbfsfusebin $TERMUX_PREFIX/bin/kbfsfuse
install -Dm700 -t $TERMUX_PREFIX/bin \
./go/.bin/{keybase,git-remote-keybase,kbfsfuse}
}