30 lines
897 B
Bash
30 lines
897 B
Bash
# Template file for 'containers.image'
|
|
pkgname=containers.image
|
|
version=5.32.0
|
|
revision=1
|
|
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 <cam@nohom.org>"
|
|
license="Apache-2.0"
|
|
homepage="https://github.com/containers/image"
|
|
changelog="https://github.com/containers/image/releases"
|
|
distfiles="https://github.com/containers/image/archive/refs/tags/v${version}.tar.gz"
|
|
checksum=f7582d2b4fed4967921ff154752cc33e8f319a232b561710a3e2872ba754945d
|
|
|
|
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 default-policy.json 0644 etc/containers policy.json
|
|
}
|