diff options
author | Aaron Hurt <ahurt@ena.com> | 2016-06-09 14:21:43 -0500 |
---|---|---|
committer | Bartłomiej Piotrowski <b@bpiotrowski.pl> | 2016-06-17 21:45:57 +0200 |
commit | 0dbfd788c4e97bc3d74a9a705589fb6fad4fb293 (patch) | |
tree | 327bb2f7222579b52c3612558fabb04935d1bd59 /testing/glide | |
parent | 266611637cab8eaf97018225305b42683e96953b (diff) | |
download | aports-0dbfd788c4e97bc3d74a9a705589fb6fad4fb293.tar.bz2 aports-0dbfd788c4e97bc3d74a9a705589fb6fad4fb293.tar.xz |
testing/glide: new aport
Package Management for Go
https://glide.sh
Diffstat (limited to 'testing/glide')
-rw-r--r-- | testing/glide/APKBUILD | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/testing/glide/APKBUILD b/testing/glide/APKBUILD new file mode 100644 index 0000000000..508d04e530 --- /dev/null +++ b/testing/glide/APKBUILD @@ -0,0 +1,36 @@ +# Contributor: Aaron Hurt <ahurt@ena.com> +# Maintainer: Aaron Hurt <ahurt@ena.com> +pkgname="glide" +pkgver="0.10.2" +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/$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="36a7ab7bd7239c362c9b94cb5e81d154 glide-0.10.2.tar.gz" +sha256sums="f0153d88f12fb36419cb616d9922ae95b274ac7c9ed9b043701f187da5834eac glide-0.10.2.tar.gz" +sha512sums="5e8ecf20de7ce53236d16e52e98acf46f4611d84b742665009d4aea44efe9ba09344f9fe5a6d3f6d6b67ba168ac0f825f620ea419a24ddd826a3ecd83aeea320 glide-0.10.2.tar.gz" |