1 # Maintainer: Aliaksandr Stelmachonak <mail.avatar@gmail.com>
3 pkgname=vhba-module-zen
8 pkgdesc="Kernel module that emulates SCSI devices for ZEN kernel"
10 url="http://cdemu.sourceforge.net/"
12 depends=('kernel26-zen>=2.6.33' 'kernel26-zen<2.6.34')
13 makedepends=('kernel26-headers>=2.6.33' 'kernel26-headers<2.6.34')
14 provides=('vhba-module')
15 install=vhba-module-zen.install
16 source=(http://downloads.sourceforge.net/cdemu/$_realname-$pkgver.tar.bz2)
17 md5sums=('a3b6ad798f2b72ef599df797ef79e5ec')
20 cd "$srcdir/$_realname-$pkgver"
22 #workaround to fix compilation against 2.6.33 - http://bugs.gentoo.org/233910
24 sed -i "s:<linux/autoconf.h>:<generated/autoconf.h>:" $i
27 make -j1 KDIR=/usr/src/linux-${_kernver} || return 1
28 install -D vhba.ko "$pkgdir/lib/modules/${_kernver}/extra/vhba.ko" || return 1
29 sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='${_kernver}'/" "$startdir/vhba-module-zen.install"