mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-06 19:14:48 +02:00
47 lines
1.5 KiB
Text
47 lines
1.5 KiB
Text
# Contributor: Kevin Daudt <kdaudt@alpinelinux.org>
|
|
maintainer="Kevin Daudt <kdaudt@alpinelinux.org>"
|
|
pkgname=kapp
|
|
pkgver=0.64.2
|
|
pkgrel=0
|
|
pkgdesc="deployment tool focused on the concept of a kubernetes application"
|
|
url="https://carvel.dev/kapp"
|
|
arch="all"
|
|
license="Apache-2.0"
|
|
options="net"
|
|
makedepends="go"
|
|
checkdepends="gotestfmt"
|
|
subpackages="
|
|
$pkgname-bash-completion:bashcomp
|
|
$pkgname-zsh-completion:zshcomp
|
|
$pkgname-fish-completion:fishcomp
|
|
"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/carvel-dev/kapp/archive/v$pkgver/kapp-$pkgver.tar.gz
|
|
test-increase-timeouts.patch
|
|
"
|
|
|
|
build() {
|
|
go build \
|
|
-ldflags="-X carvel.dev/kapp/pkg/kapp/version.Version=$pkgver -buildid=" \
|
|
-trimpath \
|
|
-o kapp ./cmd/kapp
|
|
|
|
./kapp completion bash >kapp.bash
|
|
./kapp completion zsh >kapp.zsh
|
|
./kapp completion fish >kapp.fish
|
|
}
|
|
|
|
check() {
|
|
go test -json -v ./pkg/... | tee test.log | gotestfmt -showteststatus -hide empty-packages
|
|
}
|
|
|
|
package() {
|
|
install -Dm0755 kapp "$pkgdir"/usr/bin/kapp
|
|
install -Dm0644 kapp.bash "$pkgdir"/usr/share/bash-completion/completions/kapp
|
|
install -Dm0644 kapp.zsh "$pkgdir"/usr/share/zsh/site-functions/kapp.sh
|
|
install -Dm0644 kapp.fish "$pkgdir"/usr/share/fish/vendor_completions.d/kapp.fish
|
|
}
|
|
|
|
sha512sums="
|
|
53f3d1609fffc8bd08caf1c5369fb0e5c20245ac9d78443b77bd9918cf2fd6f008a700c34aa3bcc95bd673747f25f09637c77b9277fb06fef94f3a12aa44debb kapp-0.64.2.tar.gz
|
|
74300707902e039118118daa3dbc81c7311b97ff1fde8ec385128fea75a2c8d969fb1d347417b2770de1f6fd3c9e343e2cb1046f736c4f3680cc5b4bdf3960e4 test-increase-timeouts.patch
|
|
"
|