3efa45721a
* calcurse: update to 4.6.0 * dialog: update to 20200327 * dictd: update to 1.13.0 * gitea: update to 1.11.4 * jfrog-cli: update to 1.35.3 * libgd: update to 2.3.0 * libgit2: update to 1.0.0 * libgraphite: update to 1.3.14 * libnftnl: update to 1.1.6 * vim, vim-python: update to 8.2.0500 * unrar: update to 5.9.2 * remind: update to 03.03.01 * nano: update to 4.9.1 * seafile-client: update to 7.0.7 * libgnutls: update to 3.6.13 * apache2: update to 2.4.43
39 lines
1.2 KiB
Bash
39 lines
1.2 KiB
Bash
TERMUX_PKG_HOMEPAGE=https://jfrog.com/getcli
|
|
TERMUX_PKG_DESCRIPTION="A CLI for JFrog products."
|
|
TERMUX_PKG_LICENSE="Apache-2.0"
|
|
TERMUX_PKG_VERSION=1.35.3
|
|
TERMUX_PKG_SRCURL=https://github.com/jfrog/jfrog-cli/archive/$TERMUX_PKG_VERSION.tar.gz
|
|
TERMUX_PKG_SHA256=5ff83aa5e8a47915da7672eeb29f0660039aeae9da93bf52067a06771a95fa38
|
|
TERMUX_PKG_DEPENDS="libc++"
|
|
|
|
termux_step_make() {
|
|
termux_setup_golang
|
|
export GOPATH=$TERMUX_PKG_BUILDDIR
|
|
|
|
cd $TERMUX_PKG_SRCDIR
|
|
go build \
|
|
-o "$TERMUX_PREFIX/bin/jfrog" \
|
|
-tags "linux extended" \
|
|
main.go
|
|
# "linux" tag should not be necessary
|
|
# try removing when golang version is upgraded
|
|
|
|
# Building for host to generate manpages and completion.
|
|
chmod 700 -R $GOPATH/pkg && rm -rf $GOPATH/pkg
|
|
unset GOOS GOARCH CGO_LDFLAGS
|
|
unset CC CXX CFLAGS CXXFLAGS LDFLAGS
|
|
go build \
|
|
-o "$TERMUX_PKG_BUILDDIR/jfrog" \
|
|
-tags "linux extended" \
|
|
main.go
|
|
# "linux" tag should not be necessary
|
|
# try removing when golang version is upgraded
|
|
}
|
|
|
|
termux_step_make_install() {
|
|
mkdir -p $TERMUX_PREFIX/share/bash-completion/completions
|
|
$TERMUX_PKG_BUILDDIR/jfrog completion bash
|
|
cp ~/.jfrog/jfrog_bash_completion $TERMUX_PREFIX/share/bash-completion/completions/jfrog
|
|
|
|
}
|