blob: 4f1531c0683d530dd2035938c5c99805b1ccd849 (
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.3"
pkgrel=1
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="f13dfef723df4c4b9f19363a71f692f4 glide-0.12.3.tar.gz"
sha256sums="a304c29267cf7e00b7299b6ac8da0317f2f4f4096acb6cf817d4c745e0dee8b4 glide-0.12.3.tar.gz"
sha512sums="525bd73ed4941428dd2ad06fb5ecf87faa555eb48025a7f9ff57b4b4913b6f1a4202d9875d017080b3e96aee7b3d467c03a815e1845d0686223208f960ef9a99 glide-0.12.3.tar.gz"
|