void-packages/srcpkgs/skopeo/template

40 lines
1.1 KiB
Bash

# Template file for 'skopeo'
pkgname=skopeo
version=1.10.0
revision=4
build_style=go
build_helper=qemu
go_import_path="github.com/containers/${pkgname}"
go_package="${go_import_path}/cmd/${pkgname}"
go_build_tags="containers_image_ostree_stub"
hostmakedepends="go-md2man pkg-config"
makedepends="device-mapper-devel gpgme-devel libbtrfs-devel"
depends="containers.image containers.storage"
short_desc="Utility for operations on container images and image repositories"
maintainer="Cameron Nemo <cam@nohom.org>"
license="Apache-2.0"
homepage="https://github.com/containers/skopeo"
distfiles="https://github.com/containers/${pkgname}/archive/v${version}.tar.gz"
checksum=c3d15ec25c028980b795a0ccdcd48296287b8467fe24a7bc319f5fc87378fe8c
make_dirs="/var/lib/atomic/sigstore 0755 root root"
_completions="bash zsh fish"
post_build() {
make docs
local cli=$(find $GOPATH/bin -name skopeo)
for shell in $_completions
do
vtargetrun "$cli" completion "$shell" >"completion.$shell"
done
}
post_install() {
for m in docs/*.1; do
vman "$m"
done
for shell in $_completions
do
vcompletion "completion.$shell" "$shell"
done
}