2021-07-26 20:09:23 +02:00
|
|
|
# Maintainer: duxet <duxetlg@gmail.com>
|
|
|
|
pkgname=k3s-bin
|
2024-10-27 02:05:17 +02:00
|
|
|
pkgver=1.31.2+k3s1
|
2021-07-26 20:09:23 +02:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="Lightweight Kubernetes"
|
|
|
|
url="https://k3s.io"
|
|
|
|
license=('Apache')
|
|
|
|
arch=('x86_64' 'armv7h' 'aarch64')
|
2021-12-31 18:04:47 +01:00
|
|
|
provides=('k3s')
|
|
|
|
conflicts=('k3s')
|
2022-01-06 20:12:09 +01:00
|
|
|
backup=(etc/systemd/system/k3s.service.env)
|
2021-07-26 20:09:23 +02:00
|
|
|
|
|
|
|
source=(
|
|
|
|
"k3s.service"
|
|
|
|
"k3s.service.env"
|
2021-12-31 18:04:47 +01:00
|
|
|
"k3s-killall.sh"
|
2021-07-26 20:09:23 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
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"
|
|
|
|
)
|
|
|
|
|
2024-05-20 09:16:44 +02:00
|
|
|
sha256sums=('808dd11d5378e5b84397a5258dd5a3b97bb2994951d3da39c806fcf165c6a939'
|
|
|
|
'76b6c39e6f8520f9791541a3c9593dda8c65f901588778ad9249ae237a70c0c8'
|
2021-12-31 18:04:47 +01:00
|
|
|
'73662123fb2273bcb520231838cbfa6360d0f4354fc958284c4bf07c1a9f027d')
|
2024-10-27 02:05:17 +02:00
|
|
|
sha256sums_x86_64=('256ca852ff2ca165afbc14ed34df450aa1295e4eb01e3d1da9f251f37e546712')
|
|
|
|
sha256sums_armv7h=('0c5b47e292c98fab58f09f32aee4325d9ef2972639b233939d2e06399a3f0ee0')
|
|
|
|
sha256sums_aarch64=('a9c4cdb7f038ea46f84bdf1b5c1e518637a8bdf84c39f281a6400bc7e9d8f9f0')
|
2021-07-26 20:09:23 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
package() {
|
|
|
|
install -Dm 755 $srcdir/k3s-${pkgver}-${CARCH} $pkgdir/usr/bin/k3s
|
2021-12-31 18:04:47 +01:00
|
|
|
install -Dm 755 $srcdir/k3s-killall.sh $pkgdir/usr/bin/k3s-killall
|
2021-07-26 20:09:23 +02:00
|
|
|
|
|
|
|
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
|
|
|
|
}
|