updated on Sun Jan 22 16:00:49 UTC 2012
[aur-mirror.git] / vhba-module-zen / PKGBUILD
blob6115abdbbf64771438c2ac680a29df44b5210793
1 # Maintainer: Aliaksandr Stelmachonak <mail.avatar@gmail.com>
3 pkgname=vhba-module-zen
4 _realname=vhba-module
5 pkgver=1.2.1
6 _kernver='2.6.33-ZEN'
7 pkgrel=2
8 pkgdesc="Kernel module that emulates SCSI devices for ZEN kernel"
9 arch=('i686' 'x86_64')
10 url="http://cdemu.sourceforge.net/"
11 license=('GPL2')
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')
19 build() {
20   cd "$srcdir/$_realname-$pkgver"
22   #workaround to fix compilation against 2.6.33 - http://bugs.gentoo.org/233910
23   for i in kat/*.c; do
24       sed -i "s:<linux/autoconf.h>:<generated/autoconf.h>:" $i
25   done
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"