From 1ecb2e554a5e8ad834d9690a5ac082106267ffb3 Mon Sep 17 00:00:00 2001 From: Oskar Date: Mon, 4 Oct 2021 23:38:56 +0200 Subject: [PATCH] new package: gotop (#7647) --- packages/gotop/build.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 packages/gotop/build.sh diff --git a/packages/gotop/build.sh b/packages/gotop/build.sh new file mode 100644 index 000000000..d64ec7e26 --- /dev/null +++ b/packages/gotop/build.sh @@ -0,0 +1,21 @@ +TERMUX_PKG_HOMEPAGE=https://github.com/xxxserxxx/gotop +TERMUX_PKG_DESCRIPTION="A terminal based graphical activity monitor inspired by gtop and vtop" +TERMUX_PKG_LICENSE="MIT" +TERMUX_PKG_MAINTAINER="@medzikuser" +TERMUX_PKG_VERSION=4.1.2 +TERMUX_PKG_SRCURL=https://github.com/xxxserxxx/gotop/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz +TERMUX_PKG_SHA256=81518fecfdab4f4c25a4713e24d9c033ba8311bbd3e2c0435ba76349028356da + +termux_step_make_install() { + termux_setup_golang + + export GOPATH=$TERMUX_PKG_BUILDDIR + + cd $TERMUX_PKG_SRCDIR + + go build -o gotop \ + -ldflags "-X main.Version=v${TERMUX_PKG_VERSION} -X main.BuildDate=$(date +%Y%m%dT%H%M%S)" \ + ./cmd/gotop + + install -Dm700 -t $TERMUX_PREFIX/bin/gotop ./gotop +}