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]
9 _kernver=${_kernver_one}${_suffix}
11 pkgname=${_appname}${_suffix}
14 pkgdesc="Kernel module that emulates SCSI devices. For use with kernel26${_suffix}"
15 arch=('i686' 'x86_64')
16 url="http://cdemu.sourceforge.net/"
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')
28 cd "${srcdir}/${_appname}-${pkgver}"
29 #workaround to fix compilation against 2.6.33
30 #http://bugs.gentoo.org/233910
32 sed -i "s:<linux/autoconf.h>:<generated/autoconf.h>:" "$i"
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