1 # Maintainer: Jesse Jaara <gmail.com: jesse.jaara>
2 # Contributor: Matej Špindler <gmail.com: spindler.matej>
3 # Contributor: Mateusz Herych <gmail.com: heniekk>
4 # Contributor: Charles Lindsay <chaoslizard.org: charles>
6 ### Hacks... linux-ck was updtaed to 3.2 eventought
7 ### the ck patches for that kernel hawen't been released
8 ### so many are probably still on 3.1 kernels
9 ### so Il put in some hacks to make this work on both...
11 if [ `vercmp 3.2 $(LANG=C pacman -Qi linux-ck | grep Version | sed 's|Version.*: ||')` -lt 1 ]; then
17 pkgname=vhba-module-ck
19 _kernver="$(cat /lib/modules/extramodules-${_kernel_series}-ck/version)"
21 pkgdesc="Kernel module that emulates SCSI devices. For linux-ck."
22 arch=('i686' 'x86_64')
23 url="http://cdemu.sourceforge.net/"
25 depends=('linux-ck>=3.1' 'linux-ck<=3.3')
26 makedepends=('linux-ck-headers>=3.1')
27 install=vhba-module.install
28 source=(http://downloads.sourceforge.net/cdemu/vhba-module-${pkgver}.tar.gz)
29 md5sums=('fb90cd8fc4cd74d08c92e8235f99f1f4')
32 cd "${srcdir}/vhba-module-${pkgver}"
34 make -j1 KDIR=/usr/src/linux-${_kernver}
38 cd "${srcdir}/vhba-module-${pkgver}"
39 install -D vhba.ko "${pkgdir}/lib/modules/extramodules-${_kernel_series}-ck/vhba.ko"