# Contributor: Ed Robinson # Maintainer: Ed Robinson pkgname=dep pkgver=0.3.0 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="377869d69838a826499b9bc063eacc4b9db0d130d785901ae7fcbf28645276ba6bead33d251837646ded5f0a078e56b4a378c5227054b738cd6d581224977dc2 dep-0.3.0.tar.gz"