Added first apparmor release
[mirrors/ArchLinux-Packages.git] / apparmor / PKGBUILD
CommitLineData
742d4cec
H
1# Contributor: Thomas Mudrunka <harvie@@email..cz>
2# Maintainer: Thomas Mudrunka <harvie@@email..cz>
3# You can also contact me on http://blog.harvie.cz/
4
5pkgname=apparmor
6pkgver=2.5.1
7pkgrel=1
8pkgdesc="Linux application security framework - mandatory access control for programs"
9arch=(i686 x86_64)
10license=(GPL)
11url='https://launchpad.net/apparmor'
12makedepends=(autoconf make gcc perl)
13#install="${pkgname}.install"
14bigver="$(echo $pkgver | cut -d . -f -2)"
15source=("http://launchpad.net/apparmor/$bigver/$pkgver/+download/apparmor-$pkgver.tar.gz")
16md5sums=('76b37656bf42fedab0d0b9d47e690a8b')
17
18build() {
19 cd "${srcdir}/${pkgname}-${pkgver}"
20
21 #Patch
22 patch=common/Make.rules; { rm "$patch"
23 sed -e 's/\/usr\/bin\/pod2man/\/usr\/lib\/perl5\/core_perl\/bin\/pod2man/g' |
24 sed -e 's/\/usr\/bin\/pod2html/\/usr\/lib\/perl5\/core_perl\/bin\/pod2html/g' > "$patch"
25 } < "$patch"
26
27 patch=parser/tst/Makefile; { rm "$patch"
28 sed -e 's/\/usr\/bin\/prove/\/usr\/lib\/perl5\/core_perl\/bin\/prove/g' > "$patch"
29 } < "$patch"
30 patch=parser/Makefile; { rm "$patch"
31 sed -e 's/pdflatex/true/g' > "$patch"
32 } < "$patch"
33 echo '#!/bin/true' > parser/tst/caching.sh #Can't pass this test with current kernel
34
35 #Build
36 ( cd libraries/libapparmor
37 #autoconf
38 #./configure --prefix="${pkgdir}/usr"
39 #make
40 ##make install DESTDIR=${pkgdir}
41 )
42 ( cd parser
43 make
44 make install DESTDIR=${pkgdir}
45 )
46 ( cd utils
47 make
48 make install DESTDIR=${pkgdir}
49 )
50}
This page took 0.1593 seconds and 4 git commands to generate.