void-packages/srcpkgs/skopeo/template

35 lines
1.1 KiB
Bash

# Template file for 'skopeo'
pkgname=skopeo
version=1.16.0
revision=2
build_style=go
build_helper=qemu
go_import_path="github.com/containers/skopeo"
go_package="${go_import_path}/cmd/skopeo"
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"
changelog="https://github.com/containers/skopeo/releases"
distfiles="https://github.com/containers/skopeo/archive/refs/tags/v${version}.tar.gz"
checksum=fed91fd067605460ef33431163227471b1e85c8768203fc393345d6ffd645448
make_dirs="/var/lib/atomic/sigstore 0755 root root"
post_build() {
make docs
}
post_install() {
for m in docs/*.1; do
vman "$m"
done
for shell in bash fish zsh; do
vtargetrun "${DESTDIR}/usr/bin/skopeo" completion "${shell}" > "skopeo.${shell}"
vcompletion "skopeo.${shell}" "${shell}"
done
}