# Contributor: Ed Robinson # Maintainer: Ed Robinson pkgname=dep pkgver=0.3.1 pkgrel=0 pkgdesc="Go dependency management tool" url="https://github.com/golang/dep" arch="all" license="BSD3" makedepends="go" source="$pkgname-$pkgver.tar.gz::https://github.com/golang/$pkgname/archive/v$pkgver.tar.gz" builddir="$srcdir"/$pkgname-$pkgver subpackages=$pkgname-doc prepare() { default_prepare export GOPATH="$(pwd)/_gopath" _golang="${GOPATH}/src/github.com/golang" mkdir -vp ${_golang} ln -vsf ${builddir} ${_golang}/${pkgname} } build() { go build github.com/golang/dep/cmd/dep } package() { cd "$builddir" install -Dm755 dep "$pkgdir"/usr/bin/dep } doc () { cd "$builddir" install -Dm644 LICENSE "$subpkgdir"/usr/share/licenses/$pkgname/LICENSE } check() { cd "$GOPATH"/src/github.com/golang/${pkgname} ./dep status } sha512sums="7de9292eed906ce0f7e9e4fd42a7f8110b4ed87e6f036a5871d0faabb7f577ec47937096ed44173e1ec24341ffc76e3bc208b202b1c14b9e9330db23cd8eec28 dep-0.3.1.tar.gz"