aboutsummaryrefslogtreecommitdiffstats
path: root/community/glide/APKBUILD
blob: 33e62dac94c1ad1bf2b9103c5c21fa57abc59aa9 (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
# Contributor: Aaron Hurt <ahurt@ena.com>
# Maintainer: Aaron Hurt <ahurt@ena.com>
pkgname="glide"
pkgver=0.13.1
pkgrel=0
pkgdesc="Vendor Package Management for Golang"
url="https://github.com/Masterminds/glide"
arch="all"
license="MIT"
depends="go"
makedepends=""
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
}

sha512sums="bd3962a8c1ca528ba1eb9310e150576531131f0aa1fd3944bf0cdf764a7d73c91d8824f287554264b124aac2d8e3b7622ab44e0d919235f8b0ef640d3f0f087e  glide-0.13.1.tar.gz"