# Contributor: Michał Polański # Maintainer: Michał Polański pkgname=podman pkgver=1.8.2 pkgrel=0 pkgdesc="Simple management tool for pods, containers, and images" url="https://podman.io/" options="!check" # TODO: enable tests arch="all" license="Apache-2.0" depends="conmon cni-plugins runc iptables ip6tables slirp4netns shadow-uidmap skopeo" makedepends="go gpgme-dev libseccomp-dev libassuan-dev go-md2man btrfs-progs-dev bash" subpackages="$pkgname-doc $pkgname-bash-completion:bashcomp:noarch $pkgname-zsh-completion:zshcomp:noarch" source="$pkgname-$pkgver.tar.gz::https://github.com/containers/libpod/archive/v$pkgver.tar.gz libpod-config.patch" builddir="$srcdir/libpod-$pkgver" # secfixes: # 1.8.1-r0: # - CVE-2020-1726 build() { export BUILDTAGS="exclude_graphdriver_devicemapper seccomp" make podman PREFIX=/usr } package() { make install.bin install.man install.cni install.config \ PREFIX=/usr DESTDIR="$pkgdir" } bashcomp() { pkgdesc="Bash completions for $pkgname" depends="" install_if="$pkgname=$pkgver-r$pkgrel bash-completion" install -Dm644 "$builddir"/completions/bash/$pkgname \ "$subpkgdir"/usr/share/bash-completion/completions/$pkgname } zshcomp() { pkgdesc="Zsh completions for $pkgname" depends="" install_if="$pkgname=$pkgver-r$pkgrel zsh" install -Dm644 "$builddir"/completions/zsh/_$pkgname \ "$subpkgdir"/usr/share/zsh/site-functions/_$pkgname } sha512sums="c6e1426f66299a21be66be033460c44830b422f8a3319f37bbe53030f6a2bf84b140a29f30b83f6b61199f1df373f81a6d73787d16423ad942fc8a9154c68366 podman-1.8.2.tar.gz fb0997502e996ed0b1e99b11970380d4e7a61ab1aa0bf54ec925edd7defbbe2fec67f4cb28ab4a6f0de4ba770ca11c952893a35a0c71f10bd2c3d19f3c836803 libpod-config.patch"