blob: 3308710fd425a01d9a85f8439b8d29338a42e60d (
plain)
1 # Description: Unprivileged sandboxing tool
2 # URL: https://github.com/projectatomic/bubblewrap/
3 # Maintainer: Danny Rawlins, crux at romster dot me
4 # Depends on: libcap
5 # Optional: docbook-xsl
6
7 name=bubblewrap
8 version=0.4.0
9 release=1
10 source=(https://github.com/projectatomic/bubblewrap/releases/download/v$version/$name-$version.tar.xz
11 bwrap.1)
12
13 build() {
14 cd $name-$version
15
16 if [ ! -e '/usr/share/xml/docbook/xsl-stylesheets' ]; then
17 # build will fail if libxslt is installed witout docbook-xsl
18 PKGMK_BUBBLEWRAP+=' --disable-man'
19
20 install -Dm644 $SRC/bwrap.1 $PKG/usr/share/man/man1/bwrap.1
21 fi
22
23 ./configure ${PKGMK_BUBBLEWRAP} \
24 --prefix=/usr \
25 --with-priv-mode=setuid
26
27 make
28 make DESTDIR=$PKG install
29 }
|