termux-packages/packages/keybase/build.sh

29 lines
963 B
Bash
Raw Normal View History

TERMUX_PKG_HOMEPAGE=https://keybase.io
2019-04-17 21:13:33 +00:00
TERMUX_PKG_DESCRIPTION="Key directory that maps social media identities to encryption keys"
2019-01-21 12:53:58 +00:00
TERMUX_PKG_LICENSE="BSD 3-Clause"
TERMUX_PKG_MAINTAINER="@termux"
2023-01-19 11:38:06 +00:00
TERMUX_PKG_VERSION=6.0.4
TERMUX_PKG_SRCURL=https://github.com/keybase/client/archive/v${TERMUX_PKG_VERSION}.tar.gz
2023-01-19 11:38:06 +00:00
TERMUX_PKG_SHA256=10f1b0fbee30520091a2005886947e34ea8d0f3dc3197a80563e5eb12664cc59
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_REPLACES="kbfs"
TERMUX_PKG_CONFLICTS="kbfs"
2022-02-28 04:51:31 +00:00
TERMUX_PKG_BUILD_IN_SRC=true
termux_step_make() {
termux_setup_golang
2022-02-28 04:51:31 +00:00
cd go
go mod init || :
2023-01-19 11:38:06 +00:00
go mod tidy -compat=1.17
2022-02-28 04:51:31 +00:00
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() {
2022-02-28 04:51:31 +00:00
install -Dm700 -t $TERMUX_PREFIX/bin \
./go/.bin/{keybase,git-remote-keybase,kbfsfuse}
}