summaryrefslogtreecommitdiff
path: root/libre/vhba-module-libre/PKGBUILD
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@lavabit.com>2013-06-17 20:49:19 -0300
committerAndré Fabian Silva Delgado <emulatorman@lavabit.com>2013-06-17 20:49:19 -0300
commit7b16fd3983d9b2567b8119b0f499e9e7f3114414 (patch)
treee42e3efc387fed920841573a642d50a31297dc65 /libre/vhba-module-libre/PKGBUILD
parentefa20771cd2a60d23eeb9cccb347ee9c3c105e8f (diff)
rebuild packages against lastest linux-libre
Diffstat (limited to 'libre/vhba-module-libre/PKGBUILD')
-rw-r--r--libre/vhba-module-libre/PKGBUILD32
1 files changed, 14 insertions, 18 deletions
diff --git a/libre/vhba-module-libre/PKGBUILD b/libre/vhba-module-libre/PKGBUILD
index b1f8c6ffb..1016c0185 100644
--- a/libre/vhba-module-libre/PKGBUILD
+++ b/libre/vhba-module-libre/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 91726 2013-05-26 15:41:55Z tpowa $
+# $Id: PKGBUILD 92752 2013-06-14 12:15:10Z tpowa $
# Maintainer: Ray Rashif <schiv@archlinux.org>
# Contributor: Mateusz Herych <heniekk@gmail.com>
# Contributor: Charles Lindsay <charles@chaoslizard.org>
@@ -6,9 +6,9 @@
_pkgname=vhba-module
pkgname=vhba-module-libre
-pkgver=20120422
+pkgver=20130607
_extramodules=extramodules-3.9-LIBRE
-pkgrel=25
+pkgrel=2
pkgdesc="Kernel module that emulates SCSI devices (built for the linux-libre kernel package)"
arch=('i686' 'x86_64' 'mips64el')
url="http://cdemu.sourceforge.net/"
@@ -22,28 +22,24 @@ conflicts=('vhba-module')
provides=("vhba-module=$pkgver")
source=("http://downloads.sourceforge.net/cdemu/$_pkgname-$pkgver.tar.bz2"
'60-vhba.rules')
-md5sums=('d97372da1d270d1605742b2995fb6678'
- 'b5e82d0160e7a181219b67c1794d5c27')
+md5sums=('92a681e4665aa85a8335d00395a61697'
+ '4dc37dc348b5a2c83585829bde790dcc')
build() {
- cd "$srcdir/$_pkgname-$pkgver"
-
+ cd $_pkgname-$pkgver
_kernver="$(cat /usr/lib/modules/$_extramodules/version)"
-
make KDIR=/usr/lib/modules/$_kernver/build
}
package() {
- cd "$srcdir/$_pkgname-$pkgver"
-
- install -Dm644 vhba.ko \
- "$pkgdir/usr/lib/modules/$_extramodules/vhba.ko"
-
- sed -i -e "s/EXTRAMODULES='.*'/EXTRAMODULES='$_extramodules'/" \
- "$startdir/vhba-module.install"
-
- install -Dm644 "$srcdir/60-vhba.rules" \
- "$pkgdir/usr/lib/udev/rules.d/60-vhba.rules"
+ cd $_pkgname-$pkgver
+ install -Dm644 vhba.ko "$pkgdir/usr/lib/modules/$_extramodules/vhba.ko"
+ install -Dm644 ../60-vhba.rules "$pkgdir/usr/lib/udev/rules.d/60-vhba.rules"
+
+ cd $startdir
+ cp -f $install ${install}.pkg
+ true && install=${install}.pkg
+ sed -i "s/EXTRAMODULES=.*/EXTRAMODULES=$_extramodules/" $install
}
# vim:set ts=2 sw=2 et: