# Contributor: Aaron Hurt # Maintainer: Aaron Hurt pkgname="glide" pkgver="0.12.2" pkgrel=0 pkgdesc="Vendor Package Management for Golang" url="https://github.com/Masterminds/glide" arch="all" license="MIT" depends="" makedepends="go" install="" subpackages="" source="$pkgname-$pkgver.tar.gz::https://github.com/Masterminds/glide/archive/v$pkgver.tar.gz" builddir="$srcdir/go/src/github.com/Masterminds/glide" options="!strip" prepare() { mkdir -p "$srcdir/go/src/github.com/Masterminds" mv "$srcdir/$pkgname-$pkgver" "$builddir" } build() { export GOPATH="$srcdir/go" cd "$builddir" go build -o glide -ldflags "-X main.version=$pkgver" glide.go || return 1 } package() { cd "$builddir" install -sD -m 755 glide "$pkgdir"/usr/bin/glide } md5sums="dd7de323f390cc7c3260aafe9c9116f0 glide-0.12.2.tar.gz" sha256sums="ebb20c81df87e4d230027e07d81d88ce8ef18400df62c82f7b766693acb3106e glide-0.12.2.tar.gz" sha512sums="770957d33ea6632e574f5d81433ede85dd59a326dec7f3bed2086259ab6482d578f1ebfa10f65d1c55d66007df1c6958d30313d3700aeb76185300d74bb2bcb2 glide-0.12.2.tar.gz"