# $Id: PKGBUILD 6790 2009-12-22 18:03:34Z ibiru $ # Maintainer: Mateusz Herych # Contributor: Charles Lindsay pkgname=vhba-module pkgver=1.2.1 _kernver='2.6.32-ARCH' pkgrel=6 pkgdesc="Kernel module that emulates SCSI devices" arch=('i686' 'x86_64') url="http://cdemu.sourceforge.net/" license=('GPL2') depends=('kernel26>=2.6.32.2' 'kernel26<2.6.33') makedepends=('kernel26-headers>=2.6.32.2') install=vhba-module.install source=(http://downloads.sourceforge.net/cdemu/$pkgname-$pkgver.tar.bz2) md5sums=('a3b6ad798f2b72ef599df797ef79e5ec') build() { cd "$srcdir/$pkgname-$pkgver" make KDIR=/usr/src/linux-${_kernver} || return 1 install -D vhba.ko "$pkgdir/lib/modules/${_kernver}/extra/vhba.ko" || return 1 sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='${_kernver}'/" "$startdir/vhba-module.install" }