summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f9ebdea37b6ead2456677363878adad6392473b2 (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
# Maintainer: Tony Lambiris <tony@criticalstack.com>

pkgname=gotop-git
_pkgname=${pkgname%-git}
pkgver=2.0.0.r3.gcf00920
pkgrel=1
pkgdesc='A terminal based graphical activity monitor inspired by gtop and vtop'
arch=(x86_64)
url='https://github.com/cjbassi/gotop'
license=(AGPL3)
makedepends=("go>=1.11.0" "git")
provides=(${_pkgname})
conflicts=(${_pkgname})
source=("${pkgname}::git+https://github.com/cjbassi/gotop")
sha256sums=('SKIP')

pkgver() {
	cd "$srcdir/$pkgname"
	git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
	cd "$srcdir/$pkgname"
	go build
}

package() {
	install -Dm755 "$srcdir/$pkgname/gotop" "$pkgdir/usr/bin/gotop"
}