diff options
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 } |