aboutsummaryrefslogtreecommitdiffstats
path: root/community/glide
diff options
context:
space:
mode:
Diffstat (limited to 'community/glide')
-rw-r--r--community/glide/APKBUILD36
1 files changed, 36 insertions, 0 deletions
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 <ahurt@ena.com>
+# Maintainer: Aaron Hurt <ahurt@ena.com>
+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"