aboutsummaryrefslogtreecommitdiffstats
path: root/testing/podman/APKBUILD
blob: bdaea2ea1e66d4dc93b7364ee1ca16fd888089b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=podman
pkgver=1.9.1
pkgrel=1
pkgdesc="Simple management tool for pods, containers, and images"
url="https://podman.io/"
options="!check" # TODO: enable tests
arch="all !mips !mips64" # fails to build on mips
license="Apache-2.0"
depends="conmon cni-plugins crun 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="b51b7181cd1273af35112e4102ce60165436a52971dc18dfede97bd0065f979560a900db71196760f3c3328f4fd5dc0914620fe3d1338be820ed2f29f25289e7  podman-1.9.1.tar.gz
5b21c99940ed1d81ef0ae1bb0e192b92158d84d0f227d1170e03b63e6062806a1093bd345c26279bfb66a01c721ac589f17ef095e35c89f052405d2af09a6032  libpod-config.patch"