blob: cce249434210b044c1e92f1736a00bf22fe93daf (
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
37
38
|
# Contributor: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
pkgname=kops
pkgver=1.13.0
pkgrel=0
pkgdesc="Kubernetes Operations"
url="https://github.com/kubernetes/kops"
arch="x86_64"
license="Apache-2.0"
depends="kubernetes"
makedepends="go"
source="$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"
export GOPATH=$srcdir/go
prepare() {
default_prepare
local dir=$GOPATH/src/k8s.io
mkdir -p "$dir"
ln -s "$builddir" "$dir/$pkgname"
}
build() {
cd "$builddir"
make
}
check() {
cd "$builddir"
make test
}
package() {
install -D "$GOPATH"/bin/kops "$pkgdir"/usr/bin/kops
}
sha512sums="8a9862aa10aaf77db8bdfddc030ef9c967183c9ba4ea3018040f696c083b3c898434be5b830787454e848bdfad9fabaf13c836c1aeb536ccb37419791f13ef05 kops-1.13.0.tar.gz"
|