diff options
author | Daniel M. Capella | 2017-12-20 15:09:05 -0500 |
---|---|---|
committer | Daniel M. Capella | 2017-12-20 15:09:05 -0500 |
commit | 5d996d813e2e84f8bc13f1b1c85b845416e91ae6 (patch) | |
tree | cd7b11071dbbe5c696ed1de9a503c31081457af7 | |
download | aur-5d996d813e2e84f8bc13f1b1c85b845416e91ae6.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 32 |
2 files changed, 48 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..da963bb70282 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +# Generated by mksrcinfo v8 +# Wed Dec 20 20:09:02 UTC 2017 +pkgbase = weather-go + pkgdesc = Weather via the command line + pkgver = 0.10.0 + pkgrel = 1 + url = https://github.com/jessfraz/weather + arch = x86_64 + license = MIT + makedepends = go + depends = glibc + source = weather-go-0.10.0.tar.gz::https://github.com/jessfraz/weather/archive/v0.10.0.tar.gz + sha512sums = b5e10f9a4d88ff1c24f98ff821c70ea4b252ab8de80b9ff1b4a0717704c18f77eb1985e88820b6345fbf9774dddaebaffb38bce8eaf5137170baa90844043138 + +pkgname = weather-go + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..258ebb75b957 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: Daniel M. Capella <polycitizen@gmail.com> + +pkgname=weather-go +pkgver=0.10.0 +pkgrel=1 +pkgdesc='Weather via the command line' +url=https://github.com/jessfraz/weather +arch=('x86_64') +license=('MIT') +depends=('glibc') +makedepends=('go') +source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz") +sha512sums=('b5e10f9a4d88ff1c24f98ff821c70ea4b252ab8de80b9ff1b4a0717704c18f77eb1985e88820b6345fbf9774dddaebaffb38bce8eaf5137170baa90844043138') + +prepare() { + mkdir -p src/github.com/jessfraz + ln -rsnf weather-$pkgver src/${url#*//} +} + +build() { + cd weather-$pkgver + export GOPATH="$srcdir" + go build -v ... +} + +package() { + cd weather-$pkgver + install -Dm755 weather "$pkgdir"/usr/bin/$pkgname + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + +# vim:set ts=2 sw=2 et: |