From 5b268514d4d6c449862925b277e8f676812c6f15 Mon Sep 17 00:00:00 2001 From: Luca Bilke Date: Fri, 24 May 2024 16:05:24 +0200 Subject: [PATCH] New package: pv-migrate Reviewed-on: https://git.snaile.de/snailed/void-packages/pulls/40 Co-authored-by: Luca Bilke Co-committed-by: Luca Bilke --- srcpkgs/go/template | 4 ++-- srcpkgs/pv-migrate/template | 22 ++++++++++++++++++++++ srcpkgs/velero/template | 4 ++-- 3 files changed, 26 insertions(+), 4 deletions(-) create mode 100644 srcpkgs/pv-migrate/template diff --git a/srcpkgs/go/template b/srcpkgs/go/template index d043e6ce429..2bf792975d1 100644 --- a/srcpkgs/go/template +++ b/srcpkgs/go/template @@ -1,6 +1,6 @@ # Template file for 'go' pkgname=go -version=1.22.0 +version=1.22.3 revision=1 create_wrksrc=yes build_wrksrc=go @@ -12,7 +12,7 @@ license="BSD-3-Clause" homepage="https://go.dev/" changelog="https://go.dev/doc/devel/release.html" distfiles="https://go.dev/dl/go${version}.src.tar.gz" -checksum=4d196c3d41a0d6c1dfc64d04e3cc1f608b0c436bd87b7060ce3e23234e1f4d5c +checksum=80648ef34f903193d72a59c0dff019f5f98ae0c9aa13ade0b0ecbff991a76f68 nostrip=yes noverifyrdeps=yes # on CI it tries to use `git submodule`, which is not part of chroot-git diff --git a/srcpkgs/pv-migrate/template b/srcpkgs/pv-migrate/template new file mode 100644 index 00000000000..f023ad1e4b7 --- /dev/null +++ b/srcpkgs/pv-migrate/template @@ -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 " +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 +} diff --git a/srcpkgs/velero/template b/srcpkgs/velero/template index 125f820f8da..12c59454e13 100644 --- a/srcpkgs/velero/template +++ b/srcpkgs/velero/template @@ -16,7 +16,7 @@ checksum=e292c4427d801b426a53e24cff10aed16de5bcbf2a5207edfee30d8c4d363135 post_install() { for shell in bash zsh fish; do - ${PKGDESTDIR}/usr/bin/velero completion "$shell" >"velero.$shell" - vcompletion "velero.$shell" "$shell" + ${PKGDESTDIR}/usr/bin/${pkgname} completion "$shell" >"${pkgname}.$shell" + vcompletion "${pkgname}.$shell" "$shell" done }