From 2e38057b373246f0f081ae116bfeac1d46281d06 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Fri, 26 Aug 2016 21:40:17 +0000 Subject: community/glide: move from main glide depends on go so we cannot have it in main --- community/glide/APKBUILD | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 community/glide/APKBUILD (limited to 'community/glide') diff --git a/community/glide/APKBUILD b/community/glide/APKBUILD new file mode 100644 index 0000000000..3c4ddabdd0 --- /dev/null +++ b/community/glide/APKBUILD @@ -0,0 +1,36 @@ +# Contributor: Aaron Hurt +# Maintainer: Aaron Hurt +pkgname="glide" +pkgver="0.12.0" +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="880b20908c5a7a13fade0f46a465ec3a glide-0.12.0.tar.gz" +sha256sums="79ebe866fae4e18767ce67446b8df51b44d58c209d68ad43a025ba9d9b8c2a3c glide-0.12.0.tar.gz" +sha512sums="9079037fba1aac92b9490a745422339c9da39e64bc63349a56965ae8879ab2de47597ec399151b304153e37dbc49606807a77d3bf5eed15f5781bc351f56c515 glide-0.12.0.tar.gz" -- cgit v1.2.3