diff options
author | Daniel M. Capella | 2016-12-13 05:17:17 -0500 |
---|---|---|
committer | Daniel M. Capella | 2016-12-13 05:17:17 -0500 |
commit | 5fb552786f4dd6fb18906f19453f425ed2cada81 (patch) | |
tree | a18c3117fbedcc9a242a7fd743c04b85aaa17be9 | |
parent | a102b4ca543bc015e4f90f7936fee7f09ea43443 (diff) | |
download | aur-5fb552786f4dd6fb18906f19453f425ed2cada81.tar.gz |
Actually follow releases
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 22 |
2 files changed, 21 insertions, 7 deletions
@@ -1,13 +1,15 @@ # Generated by mksrcinfo v8 -# Tue Nov 29 05:50:42 UTC 2016 +# Mon Dec 12 07:44:51 UTC 2016 pkgbase = wego pkgdesc = Weather app for the terminal pkgver = 2.0 - pkgrel = 1 + pkgrel = 2 url = https://github.com/schachmat/wego arch = any license = ISC makedepends = go + source = wego-2.0.tar.gz::https://github.com/schachmat/wego/archive/2.0.tar.gz + sha512sums = 92073393f420f72367955b08ef64a90eadc5a72f79f9c42ee1886918923e5953da15dd9ffaefc14aa444cfe5db5f903d88ec080f9ca3490da29efe5734a200f8 pkgname = wego @@ -2,21 +2,33 @@ pkgname=wego pkgver=2.0 -pkgrel=1 +pkgrel=2 pkgdesc='Weather app for the terminal' url=https://github.com/schachmat/wego arch=('any') license=('ISC') makedepends=('go') +source=("wego-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz") +sha512sums=('92073393f420f72367955b08ef64a90eadc5a72f79f9c42ee1886918923e5953da15dd9ffaefc14aa444cfe5db5f903d88ec080f9ca3490da29efe5734a200f8') + +prepare() { + mkdir -p src/github.com/schachmat + ln -snf wego-$pkgver src/${url#*//} +} build() { - GOPATH="$srcdir" go get github.com/schachmat/wego + cd wego-$pkgver + export GOPATH="$srcdir" + go get -u -v github.com/schachmat/ingo + go get -u -v github.com/mattn/go-colorable + go get -u -v github.com/mattn/go-runewidth + go build -v } package() { - install -Dm755 bin/wego "$pkgdir"/usr/bin/$pkgname - install -Dm644 "$srcdir"/src/github.com/schachmat/wego/LICENSE \ - "$pkgdir"/usr/share/licenses/$pkgname/LICENSE + cd wego-$pkgver + install -Dm755 wego-$pkgver "$pkgdir"/usr/bin/$pkgname + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE } # vim:set ts=2 sw=2 et: |