blob: 2aa9560a85c51f9873d40162a8afd5e5fdbfa685 (
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
|
# Maintainer: Alexander F. Rødseth <xyproto@archlinux.org>
pkgname=k3s-git
pkgver=r1.7d1baa9
pkgrel=5
pkgdesc='Lightweight Kubernetes'
arch=(x86_64)
url='https://github.com/rancher/k3s'
license=(APACHE)
makedepends=(docker git go)
pkgver() {
cd $pkgname
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
git clone --depth=1 "git://github.com/rancher/k3s" $pkgname 2>/dev/null || (cd $pkgname; git fetch origin; git reset --hard origin/master)
}
build() {
make -C $pkgname
}
package() {
install -Dm755 $pkgname/dist/artifacts/k3s "$pkgdir/usr/bin/k3s"
install -Dm755 $pkgname/dist/artifacts/hyperkube "$pkgdir/usr/bin/hyperkube"
install -Dm644 $pkgname/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
# vim: ts=2 sw=2 et:
|