void-packages/srcpkgs/podman/template
Cameron Nemo 4e0b07333d podman: adapt to PREFIX changes
Signed-off-by: Cameron Nemo <cnemo@tutanota.com>
2019-06-23 17:16:40 +02:00

31 lines
1.2 KiB
Bash

# Template file for 'podman'
pkgname=podman
version=1.4.2
revision=2
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 conmon cni-plugins skopeo slirp4netns containers.image"
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"
checksum=d1b1607bfac919b2d03ca5045cb3bbae7c3333cee841c8230e3444ee2a98ea07
if [ "$CROSS_BUILD" ]; then
go_build_tags+=" containers_image_openpgp exclude_graphdriver_overlay"
fi
post_install() {
make install.man DESTDIR="${DESTDIR}" PREFIX="/usr"
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
}