blob: 783adbf6bd04cb4b236f2fe19682912e4eef11a6 (
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
|
# Maintainer: Dominic Giebert <dominic.giebert@gmail.com>
pkgname=kwctl-bin
pkgdesc='kwctl is the go-to CLI tool for Kubewarden users'
pkgver=1.21.0
pkgrel=1
arch=('aarch64' 'x86_64')
license=('Apache')
url='https://www.kubewarden.io/'
makedepends=('cosign')
provides=('kwctl')
source=("$pkgname-$pkgver.tar.gz::https://github.com/kubewarden/kwctl/releases/download/v${pkgver}/kwctl-linux-${CARCH}.zip")
sha256sums=('c8386ad0e4dc89e4b8b4345b68882e322789242e7741ed7a1af0566b22ec30e2')
options=(!debug)
package() {
# Checking the signature
cosign verify-blob \
--signature kwctl-linux-${CARCH}.sig \
--cert kwctl-linux-${CARCH}.pem kwctl-linux-${CARCH} \
--certificate-identity-regexp 'https://github.com/kubewarden/*' \
--certificate-oidc-issuer https://token.actions.githubusercontent.com
# Copy the binary
install -Dm755 "kwctl-linux-${CARCH}" "${pkgdir}/usr/bin/kwctl"
}
|