summaryrefslogtreecommitdiffstats
path: root/vhba-module/PKGBUILD
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xssn.at>2010-05-17 12:04:10 +0200
committerFlorian Pritz <bluewind@xssn.at>2010-05-17 12:04:10 +0200
commit545b0b7de32c86264d4ec1eb7b7610e4c1c85946 (patch)
tree9ad399ce5176aee3c98f216f54a12a3e6d5290c6 /vhba-module/PKGBUILD
parent8dc1d552c0bab7b72371c3a1529e365410c7548c (diff)
parentac57415603ea60e9af632e70827dffa22cfff584 (diff)
downloadaur-packages-545b0b7de32c86264d4ec1eb7b7610e4c1c85946.tar.gz
aur-packages-545b0b7de32c86264d4ec1eb7b7610e4c1c85946.tar.xz
Merge branch 'master' of git://git.server-speed.net/~flo/git/aur
Diffstat (limited to 'vhba-module/PKGBUILD')
-rw-r--r--vhba-module/PKGBUILD15
1 files changed, 9 insertions, 6 deletions
diff --git a/vhba-module/PKGBUILD b/vhba-module/PKGBUILD
index 1b63748..cf6b507 100644
--- a/vhba-module/PKGBUILD
+++ b/vhba-module/PKGBUILD
@@ -1,21 +1,24 @@
-# $Id$
+# $Id: PKGBUILD 6790 2009-12-22 18:03:34Z ibiru $
# Maintainer: Mateusz Herych <heniekk@gmail.com>
# Contributor: Charles Lindsay <charles@chaoslizard.org>
pkgname=vhba-module
pkgver=1.2.1
-pkgrel=3
+_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.31' 'kernel26<2.6.32')
+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 $startdir/src/$pkgname-$pkgver
- make KDIR=/usr/src/linux-`uname -r` || return 1
- install -D vhba.ko $startdir/pkg/lib/modules/`uname -r`/extra/vhba.ko || return 1
+ 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"
}