diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/vhba-module/PKGBUILD |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/vhba-module/PKGBUILD')
-rw-r--r-- | community/vhba-module/PKGBUILD | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/community/vhba-module/PKGBUILD b/community/vhba-module/PKGBUILD new file mode 100644 index 000000000..6f59b394e --- /dev/null +++ b/community/vhba-module/PKGBUILD @@ -0,0 +1,27 @@ +# $Id: PKGBUILD 37578 2011-01-14 16:46:23Z mherych $ +# Maintainer: Mateusz Herych <heniekk@gmail.com> +# Contributor: Charles Lindsay <charles@chaoslizard.org> + +pkgname=vhba-module +pkgver=20100822 +_kernver='2.6.37-ARCH' +pkgrel=3 +pkgdesc="Kernel module that emulates SCSI devices" +arch=('i686' 'x86_64') +url="http://cdemu.sourceforge.net/" +license=('GPL2') +depends=('kernel26>=2.6.37' 'kernel26<2.6.38') +makedepends=('kernel26-headers>=2.6.37' 'git') +install=vhba-module.install +source=(http://downloads.sourceforge.net/cdemu/$pkgname-$pkgver.tar.gz + vhba-kernel2.6.37.patch) +md5sums=('1d2f06ae33c5d15b7c29e467e4658aa2' + 'f0499fc54f6ef9b8d6ca0b9e940c5906') + +build() { + cd "$srcdir/$pkgname-$pkgver" + git apply -p2 ../vhba-kernel2.6.37.patch + make -j1 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" +} |