void-packages/srcpkgs/podman/template
2021-11-15 10:48:38 -05:00

31 lines
1.2 KiB
Bash

# Template file for 'podman'
pkgname=podman
version=3.4.2
revision=1
build_style=go
go_import_path="github.com/containers/podman/v3"
go_package="${go_import_path}/cmd/podman"
go_build_tags="seccomp apparmor containers_image_ostree_stub"
hostmakedepends="pkg-config go-md2man"
makedepends="gpgme-devel libseccomp-devel device-mapper-devel libbtrfs-devel"
depends="runc conmon cni-plugins slirp4netns containers.image fuse-overlayfs"
short_desc="Simple management tool for containers and images"
maintainer="Cameron Nemo <cnemo@tutanota.com>"
license="Apache-2.0"
homepage="https://podman.io/"
changelog="https://raw.githubusercontent.com/containers/podman/main/RELEASE_NOTES.md"
distfiles="https://github.com/containers/podman/archive/v${version}.tar.gz"
checksum=b0c4f9a11eb500b1d440d5e51a6c0c632aa4ac458e2dc0362f50f999eb7fbf31
if [ "$CROSS_BUILD" ]; then
go_build_tags+=" containers_image_openpgp"
fi
post_install() {
make install.man DESTDIR="${DESTDIR}" PREFIX="/usr"
make install.completions DESTDIR="${DESTDIR}" PREFIX="/usr"
sed -e 's|# cgroup_manager = "systemd"|cgroup_manager = "cgroupfs"|g' \
vendor/github.com/containers/common/pkg/config/containers.conf \
>containers.cgfs.conf
vinstall containers.cgfs.conf 644 usr/share/containers containers.conf
}