1 # Maintainer: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
4 pkgname=(bubblewrap bubblewrap-suid)
7 pkgdesc='Unprivileged sandboxing tool'
8 url='https://github.com/projectatomic/bubblewrap'
11 depends=(glibc libcap)
12 makedepends=(libxslt docbook-xsl git meson bash-completion)
14 _commit=c54bbc6d7b78e7a45016efe0c4ac8af9d209aa20 # tags/v0.6.2^0
15 source=("git+$url#commit=$_commit")
20 git describe --tags | sed 's/^v//;s/[^-]*-g/r&/;s/-/+/g'
28 arch-meson $pkgbase build -D selinux=disabled
29 meson compile -C build
33 meson test -C build --print-errorlogs
36 package_bubblewrap() {
37 meson install -C build --destdir "$pkgdir"
40 package_bubblewrap-suid() {
41 pkgdesc+=" (setuid variant)"
42 provides=("bubblewrap=$pkgver-$pkgrel")
43 conflicts=(bubblewrap)
45 meson install -C build --destdir "$pkgdir"
46 chmod u+s "$pkgdir/usr/bin/bwrap"