diff options
author | Simon Legner | 2018-02-01 20:20:16 +0100 |
---|---|---|
committer | Simon Legner | 2018-02-01 20:20:16 +0100 |
commit | e50e6cd1e0f6f53b1f6951629c7394f57240a01d (patch) | |
tree | cc93deabfb3864ae68d01b235312defaca3e53a6 | |
parent | bcd9764beb0e4d21b99c4a817439ab56bf795e66 (diff) | |
download | aur-e50e6cd1e0f6f53b1f6951629c7394f57240a01d.tar.gz |
0.6.0-2: Use dep ensure, go build
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 20 |
2 files changed, 18 insertions, 8 deletions
@@ -1,15 +1,15 @@ # Generated by mksrcinfo v8 -# Sat Jan 27 18:42:41 UTC 2018 +# Thu Feb 1 19:20:11 UTC 2018 pkgbase = aur-out-of-date pkgdesc = Determines out-of-date AUR packages pkgver = 0.6.0 - pkgrel = 1 + pkgrel = 2 url = https://github.com/simon04/aur-out-of-date arch = x86_64 arch = i686 license = GPL - makedepends = git makedepends = go + makedepends = dep source = https://github.com/simon04/aur-out-of-date/archive/v0.6.0.tar.gz sha256sums = 37458cb6b92cfe8b0f717779d7ba3b9cd4f7520513f3fea60f7d4864b08f083f @@ -1,22 +1,32 @@ # Maintainer: Simon Legner <Simon.Legner@gmail.com> pkgname=aur-out-of-date pkgver=0.6.0 -pkgrel=1 +pkgrel=2 pkgdesc="Determines out-of-date AUR packages" arch=('x86_64' 'i686') url="https://github.com/simon04/aur-out-of-date" license=('GPL') source=("https://github.com/simon04/$pkgname/archive/v$pkgver.tar.gz") -makedepends=('git' 'go') +makedepends=('go' 'dep') + +_importpath="github.com/simon04/$pkgname" + +prepare() { + export GOPATH="$srcdir/_go" + mkdir -p $(dirname "$GOPATH/src/$_importpath") + ln -sf "$srcdir/$pkgname-$pkgver" "$GOPATH/src/$_importpath" +} build() { - cd "$pkgname-$pkgver" - GOPATH="$srcdir" TMPDIR=/tmp go get -u github.com/simon04/aur-out-of-date/... + cd "$GOPATH/src/$_importpath" + dep ensure + go build } package() { + cd "$GOPATH/src/$_importpath" install -dm755 "$pkgdir/usr/bin" - install -m755 "$srcdir/bin/aur-out-of-date" "$pkgdir/usr/bin/aur-out-of-date" + install -m755 "$pkgname" "$pkgdir/usr/bin/aur-out-of-date" } sha256sums=('37458cb6b92cfe8b0f717779d7ba3b9cd4f7520513f3fea60f7d4864b08f083f') |