#!/usr/bin/bash
# JOBoRun		: Jwm OpenBox Obarun RUNit
# Maintainer	: Joe Bo Run <joborun@disroot.org>
# PkgSource		: url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
# Website		: https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------

pkgname=firejail
pkgver=0.9.70
pkgrel=04
pkgdesc='Linux namespaces sandbox program'
arch=('x86_64')
url=https://github.com/netblue30/firejail
depends=('apparmor')
optdepends=('xdg-dbus-proxy: for D-Bus filtering')
backup=('etc/apparmor.d/local/firejail-default'
        'etc/firejail/firecfg.config'
        'etc/firejail/firejail.config'
        'etc/firejail/login.users')
#install=firejail.install
source=("$url/releases/download/$pkgver/$pkgname-$pkgver.tar.xz"{,.asc})

build() {
  cd $pkgname-$pkgver
  ./configure --prefix=/usr --enable-apparmor
  make
}

package() {
  cd $pkgname-$pkgver
  make DESTDIR="$pkgdir" install
}

#---- license gpg-key sha256sums ----

license=('GPL2')

validpgpkeys=('F951164995F5C4006A73411E2CCB36ADFC5849A7')

sha256sums=(b77b67a4db7c01d69cb033a50aa7b1132dfaeb2cd97ce6412285235265b71b17 # firejail-0.9.70.tar.xz
	145461097f6efcacba3f6a97f15de3f2e4da05cdf419ccd95af3f4ef26c1aa20) # firejail-0.9.70.tar.xz.asc

