diff options
author | FabioLolix | 2019-01-07 07:28:30 +0100 |
---|---|---|
committer | FabioLolix | 2019-01-07 07:28:30 +0100 |
commit | 075099a19185be74d9a148199c41a71b7a05002b (patch) | |
tree | 3af98ede9ecd7ac48e07ae7c114827768bf757b0 | |
parent | 485cd29d174f0acb105b44bd849df5f35f409936 (diff) | |
download | aur-075099a19185be74d9a148199c41a71b7a05002b.tar.gz |
v1.7.1
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 22 |
2 files changed, 20 insertions, 8 deletions
@@ -1,6 +1,6 @@ pkgbase = gotop pkgdesc = A terminal based graphical activity monitor inspired by gtop and vtop - pkgver = 1.6.0 + pkgver = 1.7.1 pkgrel = 1 url = https://github.com/cjbassi/gotop arch = x86_64 @@ -12,8 +12,8 @@ pkgbase = gotop license = AGPL3 makedepends = go-pie makedepends = git - source = gotop-1.6.0.tar.gz::https://github.com/cjbassi/gotop/archive/1.6.0.tar.gz - sha256sums = c55ab94cb3f532cec1a060e4965451dc9e72443dfb4b07bb6579934d5cdb2a7d + source = gotop-1.7.1.tar.gz::https://github.com/cjbassi/gotop/archive/1.7.1.tar.gz + sha256sums = 0041d36e664870d0b461b80bba4a2fb5120af1030230f09e3e9887a67c117363 pkgname = gotop @@ -2,7 +2,7 @@ # Contributor: Caleb Bassi <calebjbassi@gmail.com> pkgname=gotop -pkgver=1.6.0 +pkgver=1.7.1 pkgrel=1 pkgdesc='A terminal based graphical activity monitor inspired by gtop and vtop' arch=(x86_64 i686 arm armv6h armv7h aarch64) @@ -10,13 +10,25 @@ url="https://github.com/cjbassi/gotop" license=(AGPL3) makedepends=(go-pie git) source=("${pkgname}-${pkgver}.tar.gz::https://github.com/cjbassi/gotop/archive/${pkgver}.tar.gz") -sha256sums=('c55ab94cb3f532cec1a060e4965451dc9e72443dfb4b07bb6579934d5cdb2a7d') +sha256sums=('0041d36e664870d0b461b80bba4a2fb5120af1030230f09e3e9887a67c117363') + +prepare() { + cd "$srcdir/$pkgname-$pkgver" + + install -m755 -d "$srcdir/go/src/github.com/cjbassi" + cp -a "$srcdir/$pkgname-$pkgver" "$srcdir/go/src/github.com/cjbassi/gotop" +} build() { - cd "$pkgname-$pkgver" - go build + cd "$srcdir/go/src/github.com/cjbassi/gotop" + + export GOPATH="$srcdir/go" + export GOFLAGS="-gcflags=all=-trimpath=${PWD} -asmflags=all=-trimpath=${PWD} -ldflags=-extldflags=-zrelro -ldflags=-extldflags=-znow" + + go get -v github.com/cjbassi/gotop + make dist/gotop } package() { - install -Dm755 "$pkgname-$pkgver"/gotop $pkgdir/usr/bin/gotop + install -Dm755 "$srcdir"/go/bin/gotop "$pkgdir"/usr/bin/gotop } |