0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-05-11 19:03:28 +00:00
Files
Termux Github Actions 8dcbe392c9 bump(main/virustotal-cli): 1.0.1
This commit has been automatically submitted by Github Actions.
2024-08-14 12:20:43 +00:00

30 lines
951 B
Bash

TERMUX_PKG_HOMEPAGE=https://github.com/VirusTotal/vt-cli
TERMUX_PKG_DESCRIPTION="Command line interface for VirusTotal"
TERMUX_PKG_LICENSE="Apache-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="1.0.1"
TERMUX_PKG_SRCURL=https://github.com/VirusTotal/vt-cli/archive/$TERMUX_PKG_VERSION.tar.gz
TERMUX_PKG_SHA256=6cb16e89cd1964c95217c347c1b5a19c930b9125c14976dbd92d46cc324e4aa6
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_BREAKS="vt-cli"
TERMUX_PKG_REPLACES="vt-cli"
termux_step_make() {
termux_setup_golang
export GOPATH=$TERMUX_PKG_BUILDDIR
mkdir -p "$GOPATH"/src/github.com/VirusTotal
ln -sf "$TERMUX_PKG_SRCDIR" "$GOPATH"/src/github.com/VirusTotal/vt-cli
cd "$GOPATH"/src/github.com/VirusTotal/vt-cli
go build \
-ldflags "-X github.com/VirusTotal/vt-cli/cmd.Version=$TERMUX_PKG_VERSION" \
-o "$TERMUX_PREFIX"/bin/vt-cli \
./vt/main.go
}
termux_step_make_install() {
ln -sfr "$TERMUX_PREFIX"/bin/vt-cli "$TERMUX_PREFIX"/bin/vt
}