aboutsummaryrefslogtreecommitdiffstats
path: root/community/glide/APKBUILD
blob: 6ee96ffecd452291448e2a3e22316b91aa1cafc4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Contributor: Aaron Hurt <ahurt@ena.com>
# Maintainer: Aaron Hurt <ahurt@ena.com>
pkgname=glide
pkgver=0.13.3
pkgrel=1
pkgdesc="Vendor Package Management for Golang"
url="https://github.com/Masterminds/glide"
arch="all"
license="MIT"
depends="go"
source="$pkgname-$pkgver.tar.gz::https://github.com/Masterminds/glide/archive/v$pkgver.tar.gz"
builddir="$srcdir/go/src/github.com/Masterminds/glide"

prepare() {
	mkdir -p "$srcdir/go/src/github.com/Masterminds"
	mv "$srcdir/$pkgname-$pkgver" "$builddir"
}

build() {
	export GOPATH="$srcdir/go"
	go build -o glide -ldflags "-X main.version=$pkgver" glide.go
}

package() {
	install -sD -m 755 glide "$pkgdir"/usr/bin/glide
}

sha512sums="bb0cf1308a9ac0768db647552131867eaccbd8c449e10fb8c8f0fa41f0cca67983b15689ad307c5299a9a125a6a7bfea19fae39525eaf407c92d893918577945  glide-0.13.3.tar.gz"