diff options
author | Henry | 2018-12-13 20:04:45 +0100 |
---|---|---|
committer | Henry | 2018-12-13 20:04:45 +0100 |
commit | 2948d6dfe1efcddae0daf866132d13b708f6f2a0 (patch) | |
tree | c36dc6ed374d5d4982fe4ae7e922223ed28c0264 | |
parent | 47a0261a2988cdc347c1faba2a7fd116e7084c7b (diff) | |
download | aur-2948d6dfe1efcddae0daf866132d13b708f6f2a0.tar.gz |
reorderd phases
-rw-r--r-- | PKGBUILD | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -17,6 +17,16 @@ prepare(){ # GOPATH setup - will go away with go.mod ln -rTsf "${pkgname}-${pkgver}" "gopath/src/$_goimport" } +build() { + export GOPATH="$srcdir/gopath" + cd "gopath/src/$_goimport" + meta="-X main.version=v$pkgver -X main.commit=release -X main.date=$(date +%F)" + go install \ + -gcflags "all=-trimpath=$PWD" \ + -asmflags "all=-trimpath=$PWD" \ + -ldflags "-extldflags $LDFLAGS $meta" +} + check() { export GOPATH="$srcdir/gopath" cd "gopath/src/$_goimport/test" @@ -30,16 +40,6 @@ check() { kill $pid_xvfb } -build() { - export GOPATH="$srcdir/gopath" - cd "gopath/src/$_goimport" - meta="-X main.version=v$pkgver -X main.commit=release -X main.date=$(date +%F)" - go install \ - -gcflags "all=-trimpath=$PWD" \ - -asmflags "all=-trimpath=$PWD" \ - -ldflags "-extldflags $LDFLAGS $meta" -} - package() { install -Dm755 gopath/bin/$pkgname -t "$pkgdir"/usr/bin/ install -Dm644 $srcdir/${pkgname}-${pkgver}/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" |