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

23 lines
558 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"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=2.3.0
2021-09-10 09:27:34 +02:00
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://github.com/gcla/termshark.git
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
go install ./...
}
termux_step_make_install() {
install -Dm700 bin/android_${GOARCH}/termshark $TERMUX_PREFIX/bin/termshark
}