# Contributor: Stuart Cardall # Maintainer: Stuart Cardall pkgname=firejail pkgver=0.9.44.10 pkgrel=0 pkgdesc="Linux namespaces and seccomp-bpf sandbox" url="https://firejail.wordpress.com/" arch="all" license="GPL2" depends="bash" makedepends="linux-headers" checkdepends="expect" options="suid" subpackages="$pkgname-doc $pkgname-bash-completion:bashcomp:noarch" source="$pkgname-$pkgver.tar.gz::https://github.com/netblue30/$pkgname/archive/$pkgver.tar.gz" builddir="$srcdir/$pkgname-$pkgver" prepare() { default_prepare || return 1 find "$builddir" -name Makefile.in -exec sed -i -r \ -e '/CFLAGS/s: (-O2|-ggdb) : :g' \ -e '1iCC=@CC@' {} + } build() { cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var \ --enable-busybox-workaround \ || return 1 make || return 1 } bashcomp() { pkgdesc="Bash completions for $pkgname" depends="bash" install_if="$pkgname=$pkgver-r$pkgrel bash" mkdir -p "$subpkgdir"/usr mv "$pkgdir"/usr/share "$subpkgdir"/usr/ } check() { cd "$builddir" make test || return 1 } package() { cd "$builddir" make DESTDIR="$pkgdir" install || return 1 } sha512sums="b3e8e8244d349f1f3b0721578be09f776d75b6dd4862171bfa074c4591be304bd1c2c7c88b25284060532665abd77021eecd2ad9b5fbc809ec91d57dd97cba6c firejail-0.9.44.10.tar.gz"