# Contributor: Stuart Cardall # Maintainer: Stuart Cardall pkgname=firejail pkgver=0.9.44.8 pkgrel=0 pkgdesc="Linux namespaces and seccomp-bpf sandbox" url="https://firejail.wordpress.com/" arch="all" license="GPL2" depends="bash" makedepends="linux-headers" 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/ } package() { cd "$builddir" make DESTDIR="$pkgdir" install || return 1 } md5sums="95eec0a2d212b6a3631042aff04a2c3e firejail-0.9.44.8.tar.gz" sha256sums="4ca0bc08bb2fdb2ee29f9f086bddbe37f7e62a4325f3facbe1b947bb6c24ee62 firejail-0.9.44.8.tar.gz" sha512sums="20e5fbc51ca4a7c126939eb95a8b5d76b1eec23a3d12db6cb7e2278fc941b87b11cbda59d7fbd9306b730ea5d8cb98ef4224fd55fe3ab193b634e9e261cc52ef firejail-0.9.44.8.tar.gz"