# Maintainer: Dominic Giebert pkgname=kwctl-bin pkgdesc='kwctl is the go-to CLI tool for Kubewarden users' pkgver=1.8.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=('SKIP') 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" }