mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-12 19:36:48 +02:00
32 lines
1 KiB
Text
32 lines
1 KiB
Text
# Contributor: William Walker <w_walker@icloud.com>
|
|
# Maintainer: William Walker <w_walker@icloud.com>
|
|
pkgname=zarf
|
|
pkgver=0.32.1
|
|
pkgrel=9
|
|
pkgdesc="DevSecOps for Air Gap & Limited-Connection Systems"
|
|
url="https://zarf.dev/"
|
|
# not useful/supported elsewhere
|
|
arch="aarch64 x86_64"
|
|
license="Apache-2.0"
|
|
makedepends="go nodejs npm"
|
|
source="$pkgname-v$pkgver.tar.gz::https://github.com/defenseunicorns/zarf/archive/refs/tags/v$pkgver.tar.gz"
|
|
# tests are integration tests that need a full setup
|
|
options="net !check"
|
|
|
|
build() {
|
|
local ldflags="
|
|
-X github.com/defenseunicorns/zarf/src/config.CLIVersion=v$pkgver
|
|
-X k8s.io/component-base/version.gitVersion=v0.0.0+zarfv$pkgver
|
|
-X k8s.io/component-base/version.gitCommit=alpine
|
|
-X k8s.io/component-base/version.buildDate=null
|
|
"
|
|
go build -ldflags "$ldflags" -o build/zarf main.go
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 build/zarf -t "$pkgdir"/usr/bin
|
|
}
|
|
|
|
sha512sums="
|
|
b2730fb3594a0bfca6600d6e9c16f1a35b2c5f136501ebf0734aed7f1c57c1f6cc124e7d491b6a9edb8d837494a72158123d83728f54ef422338514d9181b1d2 zarf-v0.32.1.tar.gz
|
|
"
|