opt/bubblewrap/Pkgfile

33 lines
859 B
Plaintext

# Description: Unprivileged sandboxing tool
# URL: https://github.com/projectatomic/bubblewrap/
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: libcap
# Optional: docbook-xsl
name=bubblewrap
version=0.8.0
release=1
source=(https://github.com/projectatomic/bubblewrap/releases/download/v$version/$name-$version.tar.xz
bwrap.1)
build() {
cd $name-$version
if [ ! -e '/usr/share/xml/docbook/xsl-stylesheets' ]; then
# build will fail if libxslt is installed witout docbook-xsl
PKGMK_BUBBLEWRAP+=' --disable-man'
install -Dm644 $SRC/bwrap.1 $PKG/usr/share/man/man1/bwrap.1
fi
./configure ${PKGMK_BUBBLEWRAP} \
--prefix=/usr \
--with-priv-mode=setuid
make
make DESTDIR=$PKG install
prt-get isinst bash-completion || rm -r $PKG/usr/share/bash-completion
prt-get isinst zsh || rm -r $PKG/usr/share/zsh
}