diff --git a/srcpkgs/pv-migrate/template b/srcpkgs/pv-migrate/template index 09a8ce63764..e653758a6eb 100644 --- a/srcpkgs/pv-migrate/template +++ b/srcpkgs/pv-migrate/template @@ -2,11 +2,10 @@ pkgname=pv-migrate version=2.0.1 # renovate utkuozdemir/pv-migrate revision=2 -archs="x86_64* i686" build_style=go go_import_path="github.com/utkuozdemir/pv-migrate" go_package="./cmd/pv-migrate" -hostmakedepends="go" +go_ldflags="-X ${go_import_path}/cmd.version=${version}" short_desc="CLI tool to easily migrate Kubernetes persistent volumes" maintainer="Luca Bilke " license="Apache-2.0" @@ -14,9 +13,14 @@ homepage="https://github.com/utkuozdemir/pv-migrate" distfiles="https://github.com/utkuozdemir/pv-migrate/archive/v${version}.tar.gz" checksum=37cfb0b7bfa581b32047fe6dbc9b834b4323629a5c946060dc897fe9bcef8e7c -post_install() { +post_build() { for shell in bash zsh fish; do - ${PKGDESTDIR}/usr/bin/${pkgname} completion "$shell" >"${pkgname}.$shell" - vcompletion "${pkgname}.$shell" "$shell" + _build-pv-migrate-xbps/bin/pv-migrate completion $shell >pv-migrate.$shell + done +} + +post_install() { + for shell in bash zsh fish; do + vcompletion pv-migrate.$shell $shell done }