aboutsummaryrefslogtreecommitdiffstats
path: root/community/glide
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2016-08-26 21:40:17 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2016-08-26 21:40:17 +0000
commit2e38057b373246f0f081ae116bfeac1d46281d06 (patch)
treeff6e158498249651e641901ba9564c4164a43a95 /community/glide
parentc896f96d861f09935321827baa57ccce9693536f (diff)
downloadaports-2e38057b373246f0f081ae116bfeac1d46281d06.tar.bz2
aports-2e38057b373246f0f081ae116bfeac1d46281d06.tar.xz
community/glide: move from main
glide depends on go so we cannot have it in main
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"