void-packages/srcpkgs/containers.image/template
Cameron Nemo ae6b6878d1 containers.image: update to 3.0.0.
containers.image: ship policy.json
2019-08-09 08:56:05 +02:00

29 lines
854 B
Bash

# Template file for 'containers.image'
pkgname=containers.image
version=3.0.0
revision=1
wrksrc="image-${version}"
conf_files="/etc/containers/registries.conf /etc/containers/policy.json"
hostmakedepends="go-md2man"
short_desc="Configuration shared by podman, buildah, and skopeo"
maintainer="Cameron Nemo <cnemo@tutanota.com>"
license="Apache-2.0"
homepage="https://github.com/containers/image"
distfiles="https://github.com/containers/image/archive/v${version}.tar.gz"
checksum=28c2a729fabe57f84f50eb26f028734ee8977588acb81aeeb63a35d23ed650e3
do_build() {
mkdir -p build
for doc in docs/*.*.md; do
docbase="${doc##*/}"
go-md2man -in "${doc}" -out "build/${docbase/.md/}"
done
}
do_install() {
for man in build/*; do
vman "${man}"
done
vinstall registries.conf 0644 etc/containers
vinstall "${FILESDIR}/policy.json" 0644 etc/containers
}