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'
22 _commit=4ab175fe6d3a4053444b04d805a6d686f53455b9 # tags/v0.8.0^0
23 source=("git+$url#commit=$_commit")
28 git describe --tags | sed 's/^v//;s/[^-]*-g/r&/;s/-/+/g'
36 arch-meson $pkgbase build -D selinux=disabled
37 meson compile -C build
41 meson test -C build --print-errorlogs
44 package_bubblewrap() {
45 meson install -C build --destdir "$pkgdir"
48 package_bubblewrap-suid() {
49 pkgdesc+=" (setuid variant)"
50 provides=("bubblewrap=$pkgver-$pkgrel")
51 conflicts=(bubblewrap)
53 meson install -C build --destdir "$pkgdir"
54 chmod u+s "$pkgdir/usr/bin/bwrap"
57 # vim:set sw=2 sts=-1 et: