testing/dep: upgrade to 0.4.1

This commit is contained in:
Carlo Landmeter 2018-04-16 21:06:49 +00:00
parent 82e7b6d7c0
commit ddac91667e

View File

@ -1,7 +1,7 @@
# Contributor: Ed Robinson <edward-robinson@cookpad.com> # Contributor: Ed Robinson <edward-robinson@cookpad.com>
# Maintainer: Ed Robinson <edward-robinson@cookpad.com> # Maintainer: Ed Robinson <edward-robinson@cookpad.com>
pkgname=dep pkgname=dep
pkgver=0.3.2 pkgver=0.4.1
pkgrel=0 pkgrel=0
pkgdesc="Go dependency management tool" pkgdesc="Go dependency management tool"
url="https://github.com/golang/dep" url="https://github.com/golang/dep"
@ -10,33 +10,29 @@ license="BSD-3-Clause"
makedepends="go" makedepends="go"
source="$pkgname-$pkgver.tar.gz::https://github.com/golang/$pkgname/archive/v$pkgver.tar.gz" source="$pkgname-$pkgver.tar.gz::https://github.com/golang/$pkgname/archive/v$pkgver.tar.gz"
builddir="$srcdir"/$pkgname-$pkgver builddir="$srcdir"/$pkgname-$pkgver
subpackages=$pkgname-doc
builddir="$srcdir/src/github.com/golang/$pkgname"
prepare() { prepare() {
mkdir -p ${builddir%/*}
mv "$srcdir"/$pkgname-$pkgver "$builddir"/
default_prepare default_prepare
export GOPATH="$(pwd)/_gopath"
_golang="${GOPATH}/src/github.com/golang"
mkdir -vp ${_golang}
ln -vsf ${builddir} ${_golang}/${pkgname}
} }
build() { build() {
go build github.com/golang/dep/cmd/dep export GOPATH="$srcdir"
cd "$builddir"
go build -ldflags="-X main.version=$pkgver" -o ./bin/dep ./cmd/dep
} }
package() { package() {
cd "$builddir" cd "$builddir"
install -Dm755 dep "$pkgdir"/usr/bin/dep install -Dm755 ./bin/dep "$pkgdir"/usr/bin/dep
}
doc () {
cd "$builddir"
install -Dm644 LICENSE "$subpkgdir"/usr/share/licenses/$pkgname/LICENSE
} }
check() { check() {
cd "$GOPATH"/src/github.com/golang/${pkgname} cd "$builddir"
./dep status ./bin/dep status > /dev/null
} }
sha512sums="3fae14328904bda9de06edd2a2614711c4f44d6a70b21210ca7bd00059c66810697a18892e7932274916befb2468d8756be97648e0912c72700b4100c3e16f7b dep-0.3.2.tar.gz" sha512sums="29caef5dbbb21020f4ba4024b9c8601da5c7f9f8caa5ab63c6dfa927be2140d33037473600246f35a6e58f94bad592b1974c38b8b9fec6f4d1d68ec8324db3d2 dep-0.4.1.tar.gz"