termux-packages/root-packages/termshark/build.sh

24 lines
684 B
Bash
Raw Normal View History

TERMUX_PKG_HOMEPAGE=https://termshark.io
TERMUX_PKG_DESCRIPTION="A terminal UI for tshark, inspired by Wireshark"
TERMUX_PKG_LICENSE="MIT"
2021-01-05 09:15:02 +01:00
TERMUX_PKG_VERSION=2.2.0
TERMUX_PKG_SHA256=deefdb0b65e5d5b97c305cf280770724542f8dd122502f616e394c62c91db0c4
TERMUX_PKG_SRCURL=https://github.com/gcla/termshark/archive/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_DEPENDS="tshark"
termux_step_make() {
termux_setup_golang
export GOPATH=$TERMUX_PKG_BUILDDIR
export GO111MODULE=on
2020-08-13 11:53:29 +02:00
cd $TERMUX_PKG_SRCDIR
2019-11-11 06:54:04 +01:00
go install github.com/gcla/termshark/v2/cmd/termshark
}
termux_step_make_install() {
cd $TERMUX_PKG_BUILDDIR
install -Dm700 bin/android_${GOARCH}/termshark $TERMUX_PREFIX/bin/termshark
}