2024-12-06 12:15:22 -05:00

54 lines
1.9 KiB
Bash

# Template file for 'podman'
pkgname=podman
version=5.3.1
revision=1
build_style=go
go_import_path="github.com/containers/podman/v5"
go_package="${go_import_path}/cmd/podman ${go_import_path}/cmd/rootlessport"
go_build_tags="seccomp apparmor containers_image_ostree_stub cni"
hostmakedepends="pkg-config go-md2man python3 mdocml"
makedepends="gpgme-devel libseccomp-devel device-mapper-devel libbtrfs-devel"
depends="runc conmon cni-plugins slirp4netns fuse-overlayfs containers-common
containers.image containers.storage netavark passt"
checkdepends="qemu"
short_desc="Simple management tool for containers and images"
maintainer="Cameron Nemo <cam@nohom.org>"
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=5b4e9ddce69cc2c8c8b8529e90093ae3ea9cb2959e2fceb98469b282dbffbcc7
if [ "$CROSS_BUILD" ]; then
go_build_tags+=" containers_image_openpgp"
fi
case $XBPS_TARGET_MACHINE in
aarch64* | x86_64*) ;;
*) make_check="no" ;; # Upstream only supports tests on aarch64 and x86_64
esac
post_build() {
make docs
}
do_check() {
rm -v cmd/quadlet/main_test.go # TODO fix this with something like export TESTFLAGS="--skip-package quadlet --skip-file quadlet"
make .install.ginkgo
make localunit
}
post_install() {
vmkdir usr/libexec/podman
mv "${DESTDIR}/usr/bin/rootlessport" "${DESTDIR}/usr/libexec/podman/rootlessport"
make install.man DESTDIR="${DESTDIR}" PREFIX="/usr"
make install.completions DESTDIR="${DESTDIR}" PREFIX="/usr"
cp vendor/github.com/containers/common/pkg/config/containers.conf \
containers.cgfs.conf
vsed -i -e 's|#cgroup_manager = "systemd"|cgroup_manager = "cgroupfs"|g' \
containers.cgfs.conf
vinstall containers.cgfs.conf 644 usr/share/containers containers.conf
vsv podman
vsv podman-docker
}