0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-11-27 06:18:57 +00:00
termux-packages/root-packages/termshark/build.sh
Kevin WIlliams 30cb8aa7e7 *: Rebuild with Go 1.21.0/1.20.7 (7)
Signed-off-by: Kevin WIlliams <admin@utermux.dev>
2023-08-12 10:42:31 +05:30

23 lines
558 B
Bash

TERMUX_PKG_HOMEPAGE=https://termshark.io
TERMUX_PKG_DESCRIPTION="A terminal UI for tshark, inspired by Wireshark"
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=2.4.0
TERMUX_PKG_REVISION=4
TERMUX_PKG_SRCURL=git+https://github.com/gcla/termshark
TERMUX_PKG_DEPENDS="tshark"
termux_step_make() {
termux_setup_golang
export GOPATH=$TERMUX_PKG_BUILDDIR
export GO111MODULE=on
cd $TERMUX_PKG_SRCDIR
go install ./...
}
termux_step_make_install() {
install -Dm700 bin/android_${GOARCH}/termshark $TERMUX_PREFIX/bin/termshark
}