# Template file for 'cni-plugin-dnsname'
pkgname=cni-plugin-dnsname
version=1.3.1
revision=4
build_style=go
go_import_path="github.com/containers/dnsname"
go_package="${go_import_path}/plugins/meta/dnsname"
depends="dnsmasq"
short_desc="Name resolution for containers"
maintainer="Cameron Nemo <cam@nohom.org>"
license="Apache-2.0"
homepage="https://github.com/containers/dnsname"
changelog="https://github.com/containers/dnsname/blob/main/RELEASE_NOTES.md"
distfiles="https://github.com/containers/dnsname/archive/v${version}.tar.gz"
checksum=a9319a1829e242b4769697650f7df63a635eda7369ba659618d49056b78bf3ce

post_install() {
	vmkdir usr/libexec/cni
	mv "${DESTDIR}/usr/bin/dnsname" "${DESTDIR}/usr/libexec/cni/dnsname"
	vdoc README.md
	vdoc README_PODMAN.md
	vsconf example/foobar.conflist
}
