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)
13 _commit=a362d3c0ee79097ce2e3fca4ad003f1e96dad472 # tags/v0.6.1^0
14 source=(git+$url#commit=$_commit)
19 git describe --tags | sed 's/^v//;s/[^-]*-g/r&/;s/-/+/g'
27 arch-meson $pkgbase build -D selinux=disabled
28 meson compile -C build
32 meson test -C build --print-errorlogs
35 package_bubblewrap() {
36 meson install -C build --destdir "$pkgdir"
39 package_bubblewrap-suid() {
40 pkgdesc+=" (setuid variant)"
41 provides=("bubblewrap=$pkgver-$pkgrel")
42 conflicts=(bubblewrap)
44 meson install -C build --destdir "$pkgdir"
45 chmod u+s "$pkgdir/usr/bin/bwrap"