31 lines
871 B
Bash
31 lines
871 B
Bash
# Template file for 'pv-migrate'
|
|
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"
|
|
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
|
|
|
|
# fix: collect2: fatal error: cannot find 'ld'
|
|
export LDFLAGS="-fuse-ld=bfd"
|
|
|
|
post_build() {
|
|
for shell in bash zsh fish; do
|
|
go run main.go completion $shell >completion.$shell
|
|
done
|
|
}
|
|
|
|
post_install() {
|
|
for shell in bash zsh fish; do
|
|
vcompletion completion.$shell $shell
|
|
done
|
|
}
|