1 # Maintainer: Morten Linderud <foxboron@archlinux.org>
2 # Maintainer: David Runge <dvzrv@archlinux.org>
3 # Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
6 pkgname=(podman podman-docker)
8 _commit=75e3c12579d391b81d871fd1cded6cf0d043550a #refs/tags/v4.5.0^{}
10 pkgdesc='Tool and library for running OCI-based containers in pods'
12 url='https://github.com/containers/podman'
26 # https://github.com/containers/podman/issues/13297
29 git+$url#commit=$_commit?signed
30 $pkgname-4.2.0-defaultinitpath.patch
32 # See the release-keys repository
33 # https://github.com/containers/release-keys
35 B7DBDCA456F7335E91F1C25CD3624C551D0515C4 # Matthew Heon <mheon@redhat.com>
36 7CE1E6F8C90CB53E7E4D8F2D502E08DB0BBF8EEE # Ashley Cui <acui@redhat.com>
37 9E33DD8704CC03E2DEB84D9A1C1EDD7CC7C3A0DD # Lokesh Mandvekar <lsm5@redhat.com>
40 'e4d15d2cf45237ddff64d149956e9f9c0ce366bd0bdf8d98de65269f53d4885d')
44 git describe --tags | sed 's/^v//;s/-/+/g'
48 # set default init_path to /usr/lib/podman/catatonit
49 # https://bugs.archlinux.org/task/75493
50 # https://github.com/containers/common/issues/1110
51 patch -Np1 -d $pkgname -i ../$pkgname-4.2.0-defaultinitpath.patch
55 # NOTE: the BUILDTAGS may change over time
56 export BUILDTAGS='apparmor seccomp systemd'
57 export CGO_CPPFLAGS="${CPPFLAGS}"
58 export CGO_CFLAGS="${CFLAGS}"
59 export CGO_CXXFLAGS="${CXXFLAGS}"
60 export CGO_LDFLAGS="${LDFLAGS}"
61 export GOFLAGS="-buildmode=pie"
62 export GOPATH="${srcdir}"
64 # NOTE: fix silly ETCDIR (might get reverted): https://github.com/containers/podman/issues/18250
65 make -j1 ETCDIR=/etc EXTRA_LDFLAGS='-compressdwarf=false -linkmode=external' PREFIX=/usr -C $pkgbase
66 make docker-docs -C $pkgbase
78 device-mapper libdevmapper.so
80 libseccomp libseccomp.so
84 'apparmor: for AppArmor support'
85 'btrfs-progs: support btrfs backend devices'
86 'cni-plugins: for an alternative container-network-stack implementation'
87 'fuse-overlayfs: for storage driver in rootless environment'
88 'passt: for alternative rootless network support'
89 'podman-compose: for docker-compose compatibility'
90 'podman-docker: for Docker-compatible CLI'
93 make install install.completions DESTDIR="$pkgdir" PREFIX=/usr LIBEXECDIR=/usr/lib -C $pkgbase
96 package_podman-docker() {
97 pkgdesc='Emulate Docker CLI using podman'
105 make -j1 install.docker-full DESTDIR="$pkgdir" PREFIX=/usr -C $pkgbase