aboutsummaryrefslogblamecommitdiffstats
path: root/community/glide/APKBUILD
blob: 46a468f60edaf09fc1853f7af80839b52cd8dac3 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                         
             

             
        

                                              
          
             
            
                                                                                              
                                                      

           

                       




                                                        
                                                  
                                                                     


           


                                                        
                                                                                                                                                                  
# Contributor: Aaron Hurt <ahurt@ena.com>
# Maintainer:
pkgname=glide
pkgver=0.13.3
pkgrel=2
pkgdesc="Vendor Package Management for Golang"
url="https://github.com/Masterminds/glide"
arch="all"
license="MIT"
depends="go"
source="$pkgname-$pkgver.tar.gz::https://github.com/Masterminds/glide/archive/v$pkgver.tar.gz"
builddir="$srcdir/go/src/github.com/Masterminds/glide"

prepare() {
	default_prepare

	mkdir -p "$srcdir/go/src/github.com/Masterminds"
	mv "$srcdir/$pkgname-$pkgver" "$builddir"
}

build() {
	export GOPATH="$srcdir/go" GO111MODULE=off
	go build -o glide -ldflags "-X main.version=$pkgver" glide.go
}

package() {
	install -sD -m 755 glide "$pkgdir"/usr/bin/glide
}

sha512sums="bb0cf1308a9ac0768db647552131867eaccbd8c449e10fb8c8f0fa41f0cca67983b15689ad307c5299a9a125a6a7bfea19fae39525eaf407c92d893918577945  glide-0.13.3.tar.gz"