opt/bubblewrap/Pkgfile

27 lines
788 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
2024-03-28 20:57:37 +01:00
# Optional: bash-completion docbook-xsl zsh
2019-09-22 04:08:15 +02:00
name=bubblewrap
2024-03-28 20:57:37 +01:00
version=0.9.0
2019-09-22 04:08:15 +02:00
release=1
2024-03-28 20:57:37 +01:00
source=(https://github.com/projectatomic/bubblewrap/releases/download/v$version/$name-$version.tar.xz)
2019-09-22 04:08:15 +02:00
build() {
2024-03-28 20:57:37 +01:00
prt-get isinst bash-completion || PKGMK_BUBBLEWRAP+=' -D bash_completion=disabled'
prt-get isinst zsh || PKGMK_BUBBLEWRAP+=' -D zsh_completion=disabled'
2019-09-22 04:08:15 +02:00
2024-03-28 20:57:37 +01:00
meson setup $name-$version build $PKGMK_BUBBLEWRAP \
2023-02-28 17:02:13 +01:00
--prefix=/usr \
2024-03-28 20:57:37 +01:00
--buildtype=plain \
--wrap-mode nodownload \
-D b_lto=true \
-D b_pie=true
meson compile -C build
DESTDIR=$PKG meson install -C build
2024-03-28 20:57:37 +01:00
chmod u+s $PKG/usr/bin/bwrap
2019-09-22 04:08:15 +02:00
}