blob: 7c7050eb44f517d322f8dbac6f35a1fd02fac9df (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# $Id$
# Maintainer: Timothy Redaelli <timothy.redaelli@gmail.com>
# Contributor: Zygmunt Krynicki <me at zygoon dot pl>
pkgname=snap-confine-apparmor
_pkgname=snap-confine
pkgver=1.0.39
pkgrel=1
pkgdesc="Confinement system for snap applications (with apparmor)"
arch=('i686' 'x86_64')
url="git://github.com/snapcore/snap-confine"
license=('GPL3')
depends=('bash' 'libseccomp' 'libsystemd' 'apparmor' 'linux-apparmor3')
makedepends=('python-docutils' 'systemd')
checkdepends=('indent' 'shellcheck')
conflicts=('snap-confine')
replaces=('snap-confine')
source=("https://github.com/snapcore/$_pkgname/releases/download/$pkgver/$_pkgname-$pkgver.tar.gz"
"https://raw.githubusercontent.com/snapcore/snap-confine/$pkgver/debian/usr.bin.snap-confine"
usr.bin.snap-confine-archlinux-nvidia.patch
dont-mount-media.patch)
md5sums=('dfb94eeec2fbf07d27c1341fadf4abb0'
'adcca4aa0ff5e205bb6688549bd22ef9'
'6c35a8932e7f04dfebf73e60bdf2945e'
'89b887eccd0bf96b7b88f2f86329e085')
prepare() {
rm -f usr.bin.snap-confine
cp "$startdir"/usr.bin.snap-confine .
patch -Np0 -i usr.bin.snap-confine-archlinux-nvidia.patch
cd "$_pkgname-$pkgver"
patch -Np1 -i "$srcdir/dont-mount-media.patch"
}
build() {
cd "$_pkgname-$pkgver"
# Nvidia support is enabled to support proprietary nvidia drivers.
./configure \
--prefix=/usr \
--libexecdir=/usr/lib/snapd \
--enable-nvidia-arch
make
}
check() {
cd "$_pkgname-$pkgver"
make -k check
}
package() {
cd "$_pkgname-$pkgver"
make DESTDIR="$pkgdir/" install
install -Dm 644 "$srcdir/usr.bin.snap-confine" "$pkgdir"/etc/apparmor.d/usr.bin.snap-confine
}
|