updated on Thu Jan 26 12:02:26 UTC 2012
[aur-mirror.git] / vhba-module-ice / PKGBUILD
blob591074c5d3c81bef4b39aa8c8a02f004c02f08ca
1 # Maintainer: cantabile <cantabile dot desu at gmail dot com>
2 # Contributor (from 'vhba-module'): Charles Lindsay <charles@chaoslizard.org>
3 # based on 'vhba-module' in [community]
5 _appname='vhba-module'
6 _suffix='-ice'
7 _kernver_one='2.6.35'
8 _kernver_two='2.6.36'
9 _kernver=${_kernver_one}${_suffix}
11 pkgname=${_appname}${_suffix}
12 pkgver=1.2.1
13 pkgrel=2
14 pkgdesc="Kernel module that emulates SCSI devices. For use with kernel26${_suffix}"
15 arch=('i686' 'x86_64')
16 url="http://cdemu.sourceforge.net/"
17 license=('GPL2')
18 depends=("kernel26${_suffix}>=${_kernver_one}" "kernel26${_suffix}<${_kernver_two}")
19 makedepends=("kernel26-headers>=${_kernver_one}" "kernel26-headers<${_kernver_two}"
20              "kernel26${_suffix}>=${_kernver_one}" "kernel26${_suffix}<${_kernver_two}")
21 install=${_appname}.install
22 source=(http://downloads.sourceforge.net/cdemu/${_appname}-${pkgver}.tar.bz2
23         vhba-kernel26-2.6.34.patch)
24 md5sums=('a3b6ad798f2b72ef599df797ef79e5ec'
25          'de68d2e744885faade0b03baff52f4a8')
27 build() {
28   cd "${srcdir}/${_appname}-${pkgver}"
29   #workaround to fix compilation against 2.6.33
30   #http://bugs.gentoo.org/233910
31   for i in kat/*.c; do
32       sed -i "s:<linux/autoconf.h>:<generated/autoconf.h>:" "$i"
33   done
34   patch -Np0 -i "${srcdir}/vhba-kernel26-2.6.34.patch" || return 1
36   make -j1 KDIR=/usr/src/linux-${_kernver} || return 1
37   install -D vhba.ko "${pkgdir}/lib/modules/${_kernver}/extra/vhba.ko" || return 1