summaryrefslogtreecommitdiff
path: root/libre
diff options
context:
space:
mode:
Diffstat (limited to 'libre')
-rw-r--r--libre/vhba-module/PKGBUILD16
1 files changed, 8 insertions, 8 deletions
diff --git a/libre/vhba-module/PKGBUILD b/libre/vhba-module/PKGBUILD
index 514ae3c78..bb3316138 100644
--- a/libre/vhba-module/PKGBUILD
+++ b/libre/vhba-module/PKGBUILD
@@ -5,25 +5,24 @@
# Contributor (Hyperbola): Márcio Silva <coadde@hyperbola.info>
# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
-_basekernel=5.2.5_gnu-1
+_basekernel=5.3.7_gnu-1
pkgbase=vhba-module
pkgname=(vhba-module vhba-module-dkms)
-pkgver=20190410
-pkgrel=32
+pkgver=20190831
+pkgrel=15
pkgrel+=.parabola1.basekernel${_basekernel%_*}
pkgdesc="Kernel module that emulates SCSI devices"
pkgdesc+=" (built for the linux-libre kernel package)"
-url="http://cdemu.sourceforge.net/"
+url="https://cdemu.sourceforge.io/"
arch=(x86_64)
arch+=(i686 armv7h)
license=(GPL)
depends=(linux-libre=${_basekernel%-*})
makedepends=(linux-libre-headers=${_basekernel%-*} git libelf)
-_extramodules=extramodules
source=("https://downloads.sourceforge.net/cdemu/$pkgbase-$pkgver.tar.bz2"
60-vhba.rules dkms.conf)
-sha256sums=('0c18954a8c2c7e208b20afdf785501b23be9382345e6577eba5d653002862394'
+sha256sums=('9a83772cf8bec15723f7a8105a0aae3faa057edbd5595e6c081e5803a8996bf9'
'3052cb1cadbdf4bfb0b588bb8ed80691940d8dd63dc5502943d597eaf9f40c3b'
'8cab0ebb4fee72069d63616b0983f105b98d1261e72e9bef5509a6e60bc382a7')
@@ -34,12 +33,13 @@ prepare() {
build() {
cd $pkgbase-$pkgver
- make KERNELRELEASE="$(cat /usr/lib/modules/$_extramodules/version)"
+ make KERNELRELEASE="$(</usr/src/linux-libre/version)"
}
package_vhba-module() {
+ local extradir="/usr/lib/modules/$(</usr/src/linux-libre/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"