# Template file for 'firejail'
pkgname=firejail
version=0.9.26
revision=1
build_style=gnu-configure
build_pie=yes
conf_files="
 /etc/firejail/transmission-qt.profile
 /etc/firejail/login.users
 /etc/firejail/dropbox.profile
 /etc/firejail/disable-secret.inc
 /etc/firejail/chromium.profile
 /etc/firejail/chromium-browser.profile
 /etc/firejail/iceweasel.profile
 /etc/firejail/firefox.profile
 /etc/firejail/evince.profile
 /etc/firejail/vlc.profile
 /etc/firejail/opera.profile
 /etc/firejail/transmission-gtk.profile
 /etc/firejail/disable-mgmt.inc
 /etc/firejail/midori.profile
 /etc/firejail/icedove.profile
 /etc/firejail/rhythmbox.profile
 /etc/firejail/gnome-mplayer.profile
 /etc/firejail/audacious.profile
 /etc/firejail/thunderbird.profile
 /etc/firejail/clementine.profile
 /etc/firejail/totem.profile"
short_desc="SUID security sandbox program"
maintainer="Duncaen <mail@duncano.de>"
license="GPL-2"
homepage="https://l3net.wordpress.com/projects/firejail/"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.bz2"
checksum=9195a15365ac73b7aa2c9816b94644e367f25ff58111b6786f94b27caf462561

case "$XBPS_TARGET_MACHINE" in
	arm*)
		configure_args+=" --disable-seccomp"
		;;
esac

pre_install() {
	# remove hardcoded strip(1)
	sed -i '/strip .*/d' Makefile
}
