void-packages/srcpkgs/crane/template

23 lines
689 B
Bash

# Template file for 'crane'
pkgname=crane
version=3.6.1
revision=4
build_style=go
go_import_path="github.com/michaelsauter/crane"
short_desc="Lift containers with ease"
maintainer="Andrea Brancaleoni <abc@pompel.me>"
license="MIT"
homepage="https://github.com/michaelsauter/crane"
distfiles="https://github.com/michaelsauter/crane/archive/v${version}.tar.gz"
checksum=d417f9f664bcb2365e5b8fced608ce66b7c029fe2d3bfbc23b81a263dd962461
pre_configure() {
vsed -e 's|github.com/michaelsauter/crane/v3|github.com/michaelsauter/crane|g' -i go.mod
vsed -e 's|github.com/michaelsauter/crane/v3|github.com/michaelsauter/crane|g' -i main.go
}
post_install() {
vlicense LICENSE
vdoc README.md
}