aboutsummaryrefslogblamecommitdiffstats
path: root/community/go-bindata/APKBUILD
blob: 3e6b42f5d598f56e75deab2fb1304888eadb4a88 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                           
                                                  
                  
            
        
                                                               
                                              
          
                 
                
                                
                                                                

         
                               

                                                                                    


           
                                                           

 
                                                                                                                                                                      
# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
pkgname=go-bindata
pkgver=3.1.3
pkgrel=4
pkgdesc="A small utility which generates Go code from any file"
url="https://github.com/go-bindata/go-bindata"
arch="all"
license="CC0-1.0"
makedepends="go"
options="!check" # No test suite
source="go-bindata-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz"

build() {
	export GOPATH="$srcdir"
	export GOFLAGS="$GOFLAGS -buildmode=pie -trimpath -mod=readonly -modcacherw"
	go build -ldflags="-s -w" -v -o bin/"$pkgname" ./"$pkgname"
}

package() {
	install -Dm0755 bin/"$pkgname" -t "$pkgdir"/usr/bin
}

sha512sums="870f939cfb07b43c54000d39fa37e8151ca5c20d13eac9bde59e7ec3e2693d8386a1ea4b5372171dac42f8a4f69a754445cb9a4fa51a7a7ba9ec54f3e8a2a2f6  go-bindata-3.1.3.tar.gz"