27 lines
788 B
Plaintext
27 lines
788 B
Plaintext
# Description: Unprivileged sandboxing tool
|
|
# URL: https://github.com/projectatomic/bubblewrap/
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
|
# Depends on: libcap
|
|
# Optional: bash-completion docbook-xsl zsh
|
|
|
|
name=bubblewrap
|
|
version=0.9.0
|
|
release=1
|
|
source=(https://github.com/projectatomic/bubblewrap/releases/download/v$version/$name-$version.tar.xz)
|
|
|
|
build() {
|
|
prt-get isinst bash-completion || PKGMK_BUBBLEWRAP+=' -D bash_completion=disabled'
|
|
prt-get isinst zsh || PKGMK_BUBBLEWRAP+=' -D zsh_completion=disabled'
|
|
|
|
meson setup $name-$version build $PKGMK_BUBBLEWRAP \
|
|
--prefix=/usr \
|
|
--buildtype=plain \
|
|
--wrap-mode nodownload \
|
|
-D b_lto=true \
|
|
-D b_pie=true
|
|
meson compile -C build
|
|
DESTDIR=$PKG meson install -C build
|
|
|
|
chmod u+s $PKG/usr/bin/bwrap
|
|
}
|