aboutsummaryrefslogtreecommitdiffstats
path: root/community/gotop/APKBUILD
blob: 8e7aa98b1f0d83ac3866f71eac967fa67e19e792 (plain) (blame)
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
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer:
pkgname=gotop
pkgver=4.1.1
pkgrel=0
pkgdesc="Terminal based graphical activity monitor"
url="https://github.com/xxxserxxx/gotop"
arch="all"
license="AGPL-3.0-or-later"
options="!check chmod-clean net" # No test suite
depends="procps" # Remove once #20 on xxxserxxx/gotop is fixed
makedepends="git go"
source="$pkgname-$pkgver.tar.gz::https://github.com/xxxserxxx/gotop/archive/v$pkgver.tar.gz"

build() {
	mkdir bin
	GOPATH="$srcdir" go build -v -o bin/ ./...
}

package() {
	mkdir -p "$pkgdir"/usr/bin/
	install -m755 ./bin/* "$pkgdir"/usr/bin/
}

sha512sums="6b1751c4625907201a07ab3b312ddadc9e0b1c86a4d51844e26b75f64cd4b2defb98419f77c0028ef45de223af88eb9c65d7b499da3106ba8096203cd31a7863  gotop-4.1.1.tar.gz"