diff options
author | Eric Engestrom | 2019-10-06 15:31:22 +0100 |
---|---|---|
committer | Eric Engestrom | 2019-10-06 15:31:22 +0100 |
commit | 44d2350d19e2528b2b8b7052e04ff54c30444f8f (patch) | |
tree | 4bab25c77623946fc563ba727dda527162d6463d /PKGBUILD | |
download | aur-rtop-git.tar.gz |
initial commit - 1.0+5.gc49441bc1f
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..90cdf71ac058 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,27 @@ +# Maintainer: Eric Engestrom <aur [at] engestrom [dot] ch> + +pkgname=rtop-git +pkgver=1.0+5.gc49441bc1f +pkgrel=1 +pkgdesc="Interactive, remote system monitoring tool based on SSH" +url=http://rtop-monitor.org +license=(MIT) +arch=(x86_64) +source=('git+https://github.com/rapidloop/rtop') +sha256sums=('SKIP') +makedepends=("go") + +pkgver() { + git -C rtop describe --abbrev=10 | + sed 's/^release_//; s/-/+/; s/-/./' +} + +build() { + export GOPATH="$srcdir" + export GOFLAGS="-gcflags=all=-trimpath=${PWD} -asmflags=all=-trimpath=${PWD} -ldflags=-extldflags=-zrelro -ldflags=-extldflags=-znow" + go get github.com/rapidloop/rtop +} + +package() { + install -Dm755 bin/rtop "$pkgdir"/usr/bin/rtop +} |