# Maintainer: duxet pkgname=k3s-bin pkgver=1.30.3+k3s1 pkgrel=1 pkgdesc="Lightweight Kubernetes" url="https://k3s.io" license=('Apache') arch=('x86_64' 'armv7h' 'aarch64') provides=('k3s') conflicts=('k3s') backup=(etc/systemd/system/k3s.service.env) source=( "k3s.service" "k3s.service.env" "k3s-killall.sh" ) source_x86_64=( "k3s-${pkgver}-x86_64::https://github.com/rancher/k3s/releases/download/v${pkgver}/k3s" ) source_armv7h=( "k3s-${pkgver}-armv7h::https://github.com/rancher/k3s/releases/download/v${pkgver}/k3s-armhf" ) source_aarch64=( "k3s-${pkgver}-aarch64::https://github.com/rancher/k3s/releases/download/v${pkgver}/k3s-arm64" ) sha256sums=('808dd11d5378e5b84397a5258dd5a3b97bb2994951d3da39c806fcf165c6a939' '76b6c39e6f8520f9791541a3c9593dda8c65f901588778ad9249ae237a70c0c8' '73662123fb2273bcb520231838cbfa6360d0f4354fc958284c4bf07c1a9f027d') sha256sums_x86_64=('00e9752be22c0e440cee3a8ffd51e2b8c18ef10cea7edf11cc33f37c70bb6385') sha256sums_armv7h=('52e896f21b919fc54d17c4038d8fd080a5df036f211c2ba31336d7329c98012b') sha256sums_aarch64=('00786746ad8b61efc96e3ea9d4dd3315fbd47818d89d8f5cad2be8a17e69b9aa') package() { install -Dm 755 $srcdir/k3s-${pkgver}-${CARCH} $pkgdir/usr/bin/k3s install -Dm 755 $srcdir/k3s-killall.sh $pkgdir/usr/bin/k3s-killall install -dm 755 $pkgdir/usr/lib/systemd/system install -dm 755 $pkgdir/etc/systemd/system install -m 644 $srcdir/k3s.service $pkgdir/usr/lib/systemd/system/k3s.service install -m 400 $srcdir/k3s.service.env $pkgdir/etc/systemd/system/k3s.service.env }