aur/k3s-bin/PKGBUILD
drone afe8b5c495
All checks were successful
ci/woodpecker/cron/woodpecker Pipeline was successful
k3s-bin: update to 1.27.5+k3s1 [CI SKIP]
2023-09-06 00:00:50 +00:00

51 lines
1.6 KiB
Bash

# Maintainer: duxet <duxetlg@gmail.com>
pkgname=k3s-bin
pkgver=1.27.5+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=('571af7c8403f2f433afa50702a53658dbb9f846da7c6ac2a3ba6cc454039429a'
'667199fa6b811dde3aef3e626e2695a566ad64c9a03d19d0c94a1f104a7612d0'
'73662123fb2273bcb520231838cbfa6360d0f4354fc958284c4bf07c1a9f027d')
sha256sums_x86_64=('aa3387f1e01e21478d8042d6ab0cb25c299fe0920e2e30fc760ab36fb7a3d459')
sha256sums_armv7h=('20af1fc736e522ec5a8e2cf63bee00d3dadf0e6aac7107784eef9e7ae98ccb61')
sha256sums_aarch64=('989154641890f60806c655c65ea04e7ac74114f1dbec12cfb0e12edef2ed7e45')
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
}