New package: pv-migrate #40

Merged
luca merged 1 commits from dev-pv-migrate into master 2024-05-24 16:05:27 +02:00
3 changed files with 26 additions and 4 deletions

View File

@ -1,6 +1,6 @@
# Template file for 'go' # Template file for 'go'
pkgname=go pkgname=go
version=1.22.0 version=1.22.3
revision=1 revision=1
create_wrksrc=yes create_wrksrc=yes
build_wrksrc=go build_wrksrc=go
@ -12,7 +12,7 @@ license="BSD-3-Clause"
homepage="https://go.dev/" homepage="https://go.dev/"
changelog="https://go.dev/doc/devel/release.html" changelog="https://go.dev/doc/devel/release.html"
distfiles="https://go.dev/dl/go${version}.src.tar.gz" distfiles="https://go.dev/dl/go${version}.src.tar.gz"
checksum=4d196c3d41a0d6c1dfc64d04e3cc1f608b0c436bd87b7060ce3e23234e1f4d5c checksum=80648ef34f903193d72a59c0dff019f5f98ae0c9aa13ade0b0ecbff991a76f68
nostrip=yes nostrip=yes
noverifyrdeps=yes noverifyrdeps=yes
# on CI it tries to use `git submodule`, which is not part of chroot-git # on CI it tries to use `git submodule`, which is not part of chroot-git

View File

@ -0,0 +1,22 @@
# Template file for 'pv-migrate'
pkgname=pv-migrate
version=2.0.1 # renovate utkuozdemir/pv-migrate
revision=1
archs="x86_64* i686"
build_style=go
go_import_path="github.com/utkuozdemir/pv-migrate"
go_package="./cmd/pv-migrate"
hostmakedepends="go"
short_desc="CLI tool to easily migrate Kubernetes persistent volumes"
maintainer="Luca Bilke <luca@bil.ke>"
license="Apache-2.0"
homepage="https://github.com/utkuozdemir/pv-migrate"
distfiles="https://github.com/utkuozdemir/pv-migrate/archive/v${version}.tar.gz"
checksum=37cfb0b7bfa581b32047fe6dbc9b834b4323629a5c946060dc897fe9bcef8e7c
post_install() {
for shell in bash zsh fish; do
${PKGDESTDIR}/usr/bin/${pkgname} completion "$shell" >"${pkgname}.$shell"
vcompletion "${pkgname}.$shell" "$shell"
done
}

View File

@ -16,7 +16,7 @@ checksum=e292c4427d801b426a53e24cff10aed16de5bcbf2a5207edfee30d8c4d363135
post_install() { post_install() {
for shell in bash zsh fish; do for shell in bash zsh fish; do
${PKGDESTDIR}/usr/bin/velero completion "$shell" >"velero.$shell" ${PKGDESTDIR}/usr/bin/${pkgname} completion "$shell" >"${pkgname}.$shell"
vcompletion "velero.$shell" "$shell" vcompletion "${pkgname}.$shell" "$shell"
done done
} }