aboutsummaryrefslogblamecommitdiffstats
path: root/testing/kops/APKBUILD
blob: a9b885890bcbb73b017299f31c241fd0d8c51ab3 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
                                                              
                                                  
            
             
        





                                        
                     
                                                                                            











                                         



            






                                                            
                                                                                                                                                                 
# Contributor: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
pkgname=kops
pkgver=1.18.1
pkgrel=0
pkgdesc="Kubernetes Operations"
url="https://github.com/kubernetes/kops"
arch="x86_64"
license="Apache-2.0"
depends="kubernetes"
makedepends="go"
options="chmod-clean"
source="$pkgname-$pkgver.tar.gz::https://github.com/kubernetes/kops/archive/v$pkgver.tar.gz"

export GOPATH=$srcdir/go

prepare() {
	default_prepare

	local dir=$GOPATH/src/k8s.io
	mkdir -p "$dir"
	ln -s "$builddir" "$dir/$pkgname"
}

build() {
	make
}

check() {
	make test
}

package() {
	install -D "$GOPATH"/bin/kops "$pkgdir"/usr/bin/kops
}

sha512sums="932ba5c5a229073f202c6a84486b7d8ea22c46480238418028976163bec91e1d0b45546b3257ef738fc4d534e566fea0d336b4229d576e8c3b066e660947f73a  kops-1.18.1.tar.gz"