diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 37 |
1 files changed, 13 insertions, 24 deletions
@@ -1,41 +1,30 @@ # Maintainer: KingofToasters <themanhimself at sgregoratto dot me> pkgname=cointop -pkgver=1.0.6 -pkgrel=3 +pkgver=1.1.2 +pkgrel=1 pkgdesc="An interactive, real-time cryptocurrency monitor" url="https://github.com/miguelmota/cointop" license=('APACHE') arch=('i686' 'x86_64' 'armv6h' 'armv7h') -makedepends=('go-pie' 'dep' 'git') +makedepends=('go-pie' 'git') source=("$url/archive/$pkgver.tar.gz") -sha256sums=('6188f21e7fcdfe686324a30a5ccc89a684e2a9acd81f2b042309ec0b28c26272') - -prepare(){ - mkdir -p gopath/src/github.com/miguelmota - ln -rTsf "${pkgname}-${pkgver}" gopath/src/github.com/miguelmota/cointop - - export GOPATH="$srcdir/gopath" - cd "$GOPATH/src/github.com/miguelmota/cointop" - dep ensure -} +sha256sums=('69070f6b610f31f64245052910b4bd940a3e722f7326e7959c95f47ebe1c38ba') build() { - export GOPATH="$srcdir/gopath" - cd "$GOPATH/src/github.com/miguelmota/cointop" - go install \ - -gcflags "all=-trimpath=${GOPATH}" \ - -asmflags "all=-trimpath=${GOPATH}" \ - -ldflags "-extldflags ${LDFLAGS}" \ - -v ./... + cd "$pkgname-$pkgver" + go build \ + -gcflags "all=-trimpath=$PWD" \ + -asmflags "all=-trimpath=$PWD" \ + -ldflags "-extldflags $LDFLAGS" \ + -o ctop . } check() { - export GOPATH="$srcdir/gopath" - cd "$GOPATH/src/github.com/miguelmota/cointop" + cd "$pkgname-$pkgver" go test ./... } package() { - install -Dm755 "gopath/bin/$pkgname" "$pkgdir/usr/bin/$pkgname" - install -Dm644 "${pkgname}-${pkgver}/LICENSE.md" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + install -Dm755 "$pkgname-$pkgver/ctop" "$pkgdir/usr/bin/$pkgname" + install -Dm644 "$pkgname-$pkgver/LICENSE.md" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } |