aboutsummaryrefslogtreecommitdiffstats
path: root/community/glide/APKBUILD
blob: 101757719ff3f0ff5190a97940d8a36873d37e27 (plain) (blame)
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.11.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="8867fdf5cd75359d71091a2566f103e9  glide-0.11.1.tar.gz"
sha256sums="3c4958d1ab9446e3d7b2dc280cd43b84c588d50eb692487bcda950d02b9acc4c  glide-0.11.1.tar.gz"
sha512sums="1b60c3b357aed24fffb3e1d1ab777c2208549e9311fbf8939a4bce2612a42da5f2d218380c1f0359c0de6f34ad7c1d8040e4300fd38bf7820fa6122e94c37bdf  glide-0.11.1.tar.gz"