diff options
author | Tony Lambiris | 2018-03-06 19:28:41 -0500 |
---|---|---|
committer | Tony Lambiris | 2018-03-06 19:28:41 -0500 |
commit | 6639835ba2c968e0094362a74675b9eebe0ffabe (patch) | |
tree | 829769becff3b24c567b23da6e4e2380a7db23fb /PKGBUILD | |
parent | 63bc284c57fbe1e437dfb60082014da9a8cbdee1 (diff) | |
download | aur-6639835ba2c968e0094362a74675b9eebe0ffabe.tar.gz |
Update build
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -2,18 +2,17 @@ pkgname=vendorlint-git pkgver=r13.08816a4 -_pkgname=vendorlint pkgrel=1 pkgdesc="Tool to ensure all dependents are properly vendored" url="https://github.com/mephux/vendorlint" arch=('x86_64' 'i686') license=('Apache') makedepends=('go' 'go-bindata') -source=("${_pkgname}::git+https://github.com/mephux/vendorlint.git") +source=("${pkgname}::git+https://github.com/mephux/vendorlint.git") md5sums=('SKIP') pkgver() { - cd "${srcdir}/${_pkgname}" + cd "${srcdir}/${pkgname}" printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } @@ -22,7 +21,7 @@ prepare() { cd "${srcdir}" mkdir -p "go/src/github.com/mephux" - ln -sf "${srcdir}/${_pkgname}" "go/src/github.com/mephux/vendorlint" + ln -sf "${srcdir}/${pkgname}" "go/src/github.com/mephux/vendorlint" } build() { @@ -30,7 +29,7 @@ build() { mkdir bin GOROOT="/usr/lib/go" GOPATH="${srcdir}/go" PATH="$PATH:$GOPATH/bin" \ - go get -v github.com/mephux/vendorlint + go get -v -d ./... GOROOT="/usr/lib/go" GOPATH="${srcdir}/go" PATH="$PATH:$GOPATH/bin" \ go build -o bin/vendorlint github.com/mephux/vendorlint } |