termux-packages/root-packages/termshark/build.sh
2022-04-18 14:31:51 +05:30

26 lines
738 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.2.0
TERMUX_PKG_REVISION=1
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
cd $TERMUX_PKG_SRCDIR
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
}