diff options
author | Bryn Edwards | 2017-09-25 10:22:26 +0100 |
---|---|---|
committer | Bryn Edwards | 2017-09-25 10:22:26 +0100 |
commit | 304c71b603f4c3b1bc518f41b5a40f4ffd14c6ff (patch) | |
tree | e440495a779a2d402017ff017d3924de34110f3f | |
parent | b1704dc794864baa0099483c27b1b8e1a0342070 (diff) | |
download | aur-304c71b603f4c3b1bc518f41b5a40f4ffd14c6ff.tar.gz |
Update to 3.3.1; run tests
-rw-r--r-- | .SRCINFO | 8 | ||||
-rw-r--r-- | PKGBUILD | 35 |
2 files changed, 26 insertions, 17 deletions
@@ -1,15 +1,15 @@ pkgbase = antibody pkgdesc = A faster and simpler antigen written in Golang. - pkgver = 3.1.4 - pkgrel = 2 + pkgver = 3.3.1 + pkgrel = 1 url = https://getantibody.github.io/ arch = i686 arch = x86_64 license = MIT makedepends = go depends = zsh - source = https://github.com/getantibody/antibody/archive/v3.1.4.tar.gz - sha256sums = 978aec1332e1a6b4a9860d5d86571b8921edce2682479e6132c59b0364e67b4d + source = https://github.com/getantibody/antibody/archive/v3.3.1.tar.gz + sha256sums = e9fbca761c93cf2c590f2c2fc68db4559a6825bd3a093a875a767d56f87ce7c7 pkgname = antibody @@ -1,34 +1,43 @@ # Maintainer: Bryn Edwards <bryn@protonmail.ch> pkgname=antibody -pkgver=3.1.4 -pkgrel=2 -pkgdesc="A faster and simpler antigen written in Golang." +pkgver=3.3.1 +pkgrel=1 +pkgdesc="A shell plugin manager." arch=('i686' 'x86_64') url="https://getantibody.github.io/" license=('MIT') -depends=('zsh') makedepends=('go') source=("https://github.com/getantibody/antibody/archive/v${pkgver}.tar.gz") -sha256sums=('978aec1332e1a6b4a9860d5d86571b8921edce2682479e6132c59b0364e67b4d') +sha256sums=('e9fbca761c93cf2c590f2c2fc68db4559a6825bd3a093a875a767d56f87ce7c7') +_repodir=(".go/src/github.com/getantibody") prepare() { - mkdir -p "$srcdir/.go" - cd "$srcdir/$pkgname-$pkgver" - sed -i "5s/dev/$pkgver/" main.go + export GOPATH="$srcdir/.go" + export PATH="$GOPATH/bin:$PATH" + mkdir -p "$srcdir/.go/src/github.com/getantibody" + ln -sf "$srcdir/$pkgname-$pkgver" \ + "$srcdir/$_repodir/$pkgname" + cd "$srcdir/$_repodir/$pkgname" + sed -i "5s/dev/$pkgver/" "main.go" + go get -u github.com/golang/dep/... + go get -u github.com/pierrre/gotestcover + dep ensure } build() { - export GOPATH="$srcdir/.go" + cd "$_repodir/$pkgname" + make +} - cd "$srcdir/$pkgname-$pkgver/" - go get -u github.com/getantibody/antibody/cmd - go build +check() { + cd "$_repodir/$pkgname" + make test } package() { cd "$srcdir/$pkgname-$pkgver" - install -Dm755 "$pkgname-$pkgver" "$pkgdir/usr/bin/$pkgname" + install -Dm755 "$pkgname" "$pkgdir/usr/bin/$pkgname" install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } |