summaryrefslogtreecommitdiff
path: root/community-testing/vhba-module/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community-testing/vhba-module/PKGBUILD')
-rw-r--r--community-testing/vhba-module/PKGBUILD11
1 files changed, 6 insertions, 5 deletions
diff --git a/community-testing/vhba-module/PKGBUILD b/community-testing/vhba-module/PKGBUILD
index 083415a0c..2384a2c8a 100644
--- a/community-testing/vhba-module/PKGBUILD
+++ b/community-testing/vhba-module/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 72680 2012-06-19 12:52:14Z heftig $
+# $Id: PKGBUILD 73232 2012-07-04 01:02:29Z dreisner $
# Maintainer: Ray Rashif <schiv@archlinux.org>
# Contributor: Mateusz Herych <heniekk@gmail.com>
# Contributor: Charles Lindsay <charles@chaoslizard.org>
@@ -6,13 +6,14 @@
pkgname=vhba-module
pkgver=20120422
_extramodules=extramodules-3.4-ARCH
-pkgrel=2
+pkgrel=3
pkgdesc="Kernel module that emulates SCSI devices"
arch=('i686' 'x86_64')
url="http://cdemu.sourceforge.net/"
license=('GPL')
depends=('linux>=3.4' 'linux<3.5')
makedepends=('linux-headers>=3.4')
+options=(!makeflags)
install=$pkgname.install
source=("http://downloads.sourceforge.net/cdemu/$pkgname-$pkgver.tar.bz2"
'60-vhba.rules')
@@ -22,15 +23,15 @@ md5sums=('d97372da1d270d1605742b2995fb6678'
build() {
cd "$srcdir/$pkgname-$pkgver"
- _kernver="$(cat /lib/modules/$_extramodules/version)"
+ _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
- make -j1 KDIR=/usr/src/linux-$_kernver
+ make KDIR=/usr/lib/modules/$_kernver/build
}
package() {
cd "$srcdir/$pkgname-$pkgver"
- install -D vhba.ko "$pkgdir/lib/modules/$_extramodules/vhba.ko"
+ install -D vhba.ko "$pkgdir/usr/lib/modules/$_extramodules/vhba.ko"
sed -i -e "s/EXTRAMODULES='.*'/EXTRAMODULES='$_extramodules'/" \
"$startdir/vhba-module.install"