upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / podman / trunk / PKGBUILD
blob6826242fea01c1995a4d079b21e2e3e80a4f796b
1 # Maintainer: Morten Linderud <foxboron@archlinux.org>
2 # Maintainer: David Runge <dvzrv@archlinux.org>
3 # Contributor: BartÅ‚omiej Piotrowski <bpiotrowski@archlinux.org>
5 pkgbase=podman
6 pkgname=(podman podman-docker)
7 pkgver=4.5.0
8 _commit=75e3c12579d391b81d871fd1cded6cf0d043550a        #refs/tags/v4.5.0^{}
9 pkgrel=3
10 pkgdesc='Tool and library for running OCI-based containers in pods'
11 arch=(x86_64)
12 url='https://github.com/containers/podman'
13 license=(Apache)
14 makedepends=(
15   apparmor
16   btrfs-progs
17   catatonit
18   device-mapper
19   git
20   go
21   go-md2man
22   gpgme
23   libseccomp
24   systemd
26 # https://github.com/containers/podman/issues/13297
27 options=(!lto)
28 source=(
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
34 validpgpkeys=(
35   B7DBDCA456F7335E91F1C25CD3624C551D0515C4  # Matthew Heon <mheon@redhat.com>
36   7CE1E6F8C90CB53E7E4D8F2D502E08DB0BBF8EEE  # Ashley Cui <acui@redhat.com>
37   9E33DD8704CC03E2DEB84D9A1C1EDD7CC7C3A0DD  # Lokesh Mandvekar <lsm5@redhat.com>
39 sha256sums=('SKIP'
40             'e4d15d2cf45237ddff64d149956e9f9c0ce366bd0bdf8d98de65269f53d4885d')
42 pkgver() {
43   cd $pkgname
44   git describe --tags | sed 's/^v//;s/-/+/g'
47 prepare() {
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
54 build() {
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
69 package_podman() {
70   depends=(
71     catatonit
72     conmon
73     containers-common
74     crun
75     gcc-libs
76     glibc
77     iptables
78     device-mapper libdevmapper.so
79     gpgme libgpgme.so
80     libseccomp libseccomp.so
81     slirp4netns
82   )
83   optdepends=(
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'
91   )
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'
98   depends=(
99     podman
100     sh
101   )
102   conflicts=(docker)
103   provides=(docker)
105   make -j1 install.docker-full DESTDIR="$pkgdir" PREFIX=/usr -C $pkgbase