opt/bubblewrap/Pkgfile

33 lines
859 B
Plaintext
Raw Normal View History

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