[arch-commits] Commit in vhba-module/trunk (PKGBUILD)
Jan Steffens
heftig at archlinux.org
Fri Oct 11 19:19:38 UTC 2019
Date: Friday, October 11, 2019 @ 19:19:38
Author: heftig
Revision: 515103
20190831-13: kernel 5.3.6.arch1-1; removal of extramodules-ARCH
Modified:
vhba-module/trunk/PKGBUILD
----------+
PKGBUILD | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-10-11 19:19:36 UTC (rev 515102)
+++ PKGBUILD 2019-10-11 19:19:38 UTC (rev 515103)
@@ -5,7 +5,7 @@
pkgbase=vhba-module
pkgname=(vhba-module vhba-module-dkms)
pkgver=20190831
-pkgrel=12
+pkgrel=13
pkgdesc="Kernel module that emulates SCSI devices"
url="https://cdemu.sourceforge.io/"
arch=(x86_64)
@@ -12,7 +12,6 @@
license=(GPL)
depends=('linux')
makedepends=('linux-headers')
-_extramodules=extramodules-ARCH
source=("https://downloads.sourceforge.net/cdemu/$pkgbase-$pkgver.tar.bz2"
60-vhba.rules dkms.conf)
sha256sums=('9a83772cf8bec15723f7a8105a0aae3faa057edbd5595e6c081e5803a8996bf9'
@@ -26,12 +25,13 @@
build() {
cd $pkgbase-$pkgver
- make KERNELRELEASE="$(cat /usr/lib/modules/$_extramodules/version)"
+ make KERNELRELEASE="$(</usr/src/linux/version)"
}
package_vhba-module() {
+ local extradir="/usr/lib/modules/$(</usr/src/linux/version)/extramodules"
cd $pkgbase-$pkgver
- install -Dt "$pkgdir/usr/lib/modules/$_extramodules" -m644 *.ko
+ install -Dt "$pkgdir$extradir" -m644 *.ko
install -Dt "$pkgdir/usr/lib/udev/rules.d" -m644 ../60-vhba.rules
echo 'g cdemu - -' | install -Dm644 /dev/stdin "$pkgdir/usr/lib/sysusers.d/cdemu.conf"
More information about the arch-commits
mailing list