mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-10 19:22:10 +01:00
41 lines
1.1 KiB
Plaintext
41 lines
1.1 KiB
Plaintext
# Contributor: William Walker <w_walker@icloud.com>
|
|
# Maintainer: William Walker <w_walker@icloud.com>
|
|
pkgname=zarf
|
|
pkgver=0.28.3
|
|
pkgrel=2
|
|
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"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
npm --prefix src/ui ci
|
|
}
|
|
|
|
build() {
|
|
npm --prefix src/ui run 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="
|
|
a6290c0037839acd6325ed213d52ccb8611794bf9b01455c2759edd07486b3da376ff3ae4bfa188ead06f0724ff90d06b490f61141f3726c5dbdbceae7d372c0 zarf-v0.28.3.tar.gz
|
|
"
|