aboutsummaryrefslogtreecommitdiffstats
path: root/community/glide/APKBUILD
blob: 5dc8a515f620ed47b2da95f7e03918eca52722b8 (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
29
30
31
32
33
34
35
36
# Contributor: Aaron Hurt <ahurt@ena.com>
# Maintainer: Aaron Hurt <ahurt@ena.com>
pkgname="glide"
pkgver="0.12.1"
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="fbd44b2e779ebee3ac3311fd9e75685e  glide-0.12.1.tar.gz"
sha256sums="103909ce7f7ba95c9fa3ea03fa9a77393ab50a069c71608f0bc92aea35e7a15e  glide-0.12.1.tar.gz"
sha512sums="db49b66c96775610af50bbae591047475577224c1843b30de824d566d27f82f07c8380e9aea031eba68ced9c291cb5a34e7d86fff9ab4c589f8a2065cca67db1  glide-0.12.1.tar.gz"