void-packages/srcpkgs/podman/template

32 lines
1.2 KiB
Bash
Raw Normal View History

2018-12-10 05:12:33 +00:00
# Template file for 'podman'
pkgname=podman
2019-02-14 17:15:55 +00:00
version=1.0.1
2018-12-10 05:12:33 +00:00
revision=1
wrksrc="libpod-${version}"
build_style=go
go_import_path="github.com/containers/libpod"
go_package="${go_import_path}/cmd/podman"
go_build_tags="seccomp apparmor containers_image_ostree_stub
btrfs_noversion exclude_graphdriver_btrfs"
hostmakedepends="pkg-config go-md2man"
makedepends="gpgme-devel libseccomp-devel device-mapper-devel"
depends="runc cri-o cni-plugins skopeo buildah"
short_desc="Simple management tool for containers and images"
maintainer="Cameron Nemo <camerontnorman@gmail.com>"
license="Apache-2.0"
homepage="https://podman.io/"
distfiles="https://github.com/containers/libpod/archive/v${version}.tar.gz"
2019-02-14 17:15:55 +00:00
checksum=069ab838fe6b3b7949b8a11aff178b5f4f36c922d005cfb827c923e08dc6df8b
2018-12-10 05:12:33 +00:00
if [ "$CROSS_BUILD" ]; then
go_build_tags+=" containers_image_openpgp exclude_graphdriver_overlay"
fi
post_install() {
make install.man PREFIX="${DESTDIR}/usr" DESTDIR="${DESTDIR}"
make install.cni DESTDIR="${DESTDIR}"
vinstall completions/bash/podman 644 usr/share/bash-completion/completions
sed 's|cgroup_manager = "systemd"|cgroup_manager = "cgroupfs"|g' libpod.conf >libpod.cgfs.conf
vinstall libpod.cgfs.conf 644 usr/share/containers libpod.conf
}