1 # Maintainer: Jamie Nguyen <jamie tomoyolinux co uk>
6 pkgver=${_basever}.${_timestamp}
8 _ccstoolsver=1.8.3.20111025
10 pkgdesc='TOMOYO Linux 1.8.x Module for the Linux kernel'
11 arch=('i686' 'x86_64')
12 url='http://akari.sourceforge.jp/'
14 depends=("linux>=3.1" "linux<3.2")
15 makedepends=("linux-headers>=3.1" "linux-headers<3.2")
16 optdepends=("ccs-tools>=${_ccstoolsver}")
17 conflicts=("ccs-tools<${_ccstoolsver}")
19 source=("http://sourceforge.jp/frs/redir.php?f=/akari/49272/akari-${_basever}-${_timestamp}.tar.gz")
20 noextract=("akari-${_basever}-${_timestamp}.tar.gz")
23 msg "Copying headers to source directory..."
24 cp -a "/usr/src/linux-${_kernver}/" "${srcdir}"
26 cd "${srcdir}/linux-${_kernver}/"
28 msg "Extracting akari into kernel headers..."
29 tar -xf "${srcdir}/akari-${_basever}-${_timestamp}.tar.gz"
31 msg "Building akari module..."
32 make SUBDIRS=akari SYSSRC=/lib/modules/${_kernver}/build modules || return 1
36 install -D -m644 "${srcdir}/linux-${_kernver}/akari/akari.ko" \
37 "${pkgdir}/lib/modules/${_kernver}/kernel/extra/akari.ko"
39 sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='${_kernver}'/" "${startdir}/akari.install"
42 sha256sums=('956d47d5de18c15072c07e85034d4ecbcb56213de646d7f8dc9cde6806575205')