blob: ee1d7303db5b646b3b1689c8785031f6521d3e36 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# Maintainer: Leo <thinkabit.ukim@gmail.com>
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"
|