# Maintainer: Leo pkgname=gotop pkgver=3.0.0 pkgrel=0 pkgdesc="Terminal based graphical activity monitor" url="https://github.com/cjbassi/gotop" arch="all" license="AGPL-3.0-or-later" depends="procps" # Remove once #138 on cjbassi/gotop is fixed makedepends="git go" source="$pkgname-$pkgver.tar.gz::https://github.com/cjbassi/gotop/archive/${pkgver}.tar.gz" builddir="$srcdir/src/github.com/cjbassi/gotop" prepare() { default_prepare mkdir -p "$srcdir"/src/github.com/cjbassi mv "$srcdir"/$pkgname-$pkgver "$builddir"/ } build() { GOPATH="$srcdir" go build -v -o bin/$pkgname . } check() { # No testsuite is provided ./bin/$pkgname --help } package() { install -Dm755 bin/$pkgname "$pkgdir"/usr/bin/$pkgname } sha512sums="012cc627fa7013409f3775d5bf2528e25e275fc285fea7ae93a1afec33474c923cc6cd9accb24fce479ab229c98d6438cc9f5eb7dea37f72c1905516d5fdbf6e gotop-3.0.0.tar.gz"