SHARE
TWEET

AUR Akari PKBBUILD

a guest Apr 15th, 2014 183 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. pkgname=akari
  2. _basever=1.0.30
  3. _timestamp=20131225
  4. pkgver=${_basever}_${_timestamp}
  5. _kernver=$(uname -r)
  6. pkgrel=3
  7. pkgdesc='TOMOYO Linux 1.8.x Module for the Linux kernel'
  8. arch=('i686' 'x86_64')
  9. url='http://akari.sourceforge.jp/'
  10. license=('GPL')
  11. depends=('linux' 'ncurses')
  12. makedepends=('linux-headers')
  13. optdepends=('ccs-tools')
  14. install=akari.install
  15. source=("http://sourceforge.jp/frs/redir.php?f=/akari/49272/akari-${_basever}-${_timestamp}.tar.gz")
  16. sha256sums=('8973cda153528297a5a89c9bc317333cb48de13046e2e2135f9c2f33afc26270')
  17. noextract=("akari-${_basever}-${_timestamp}.tar.gz")
  18.  
  19. build() {
  20.   msg "Copying headers to source directory..."
  21.   #cp -a "/usr/src/linux-${_kernver}/" "${srcdir}"
  22.   cp -a "/usr/lib/modules/${_kernver}/build" "${srcdir}"
  23.  
  24.   cd "${srcdir}/build/"
  25.  
  26.   msg "Extracting akari into kernel headers..."
  27.   tar -xf "${srcdir}/akari-${_basever}-${_timestamp}.tar.gz"
  28.  
  29.   msg "Building akari module..."
  30.   make SUBDIRS=akari SYSSRC=/lib/modules/${_kernver}/build modules || return 1
  31. }
  32.  
  33. package() {
  34.   install -D -m644 "${srcdir}/build/akari/akari.ko" \
  35.     "${pkgdir}/usr/lib/modules/${_kernver}/kernel/extra/akari.ko"
  36.   install -D -m644 "${srcdir}/build/akari/akari_test.ko" \
  37.     "${pkgdir}/usr/lib/modules/${_kernver}/kernel/extra/akari_test.ko"
  38.  
  39.   sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='${_kernver}'/" "${startdir}/akari.install" || return 1
  40. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top