[arch-commits] Commit in virtualbox-modules-arch/trunk (PKGBUILD)
Jan Steffens
heftig at archlinux.org
Fri Oct 25 13:19:09 UTC 2019
Date: Friday, October 25, 2019 @ 13:19:08
Author: heftig
Revision: 518867
6.0.14-3: kernel 5.3.7.arch1-2
Modified:
virtualbox-modules-arch/trunk/PKGBUILD
----------+
PKGBUILD | 20 ++++++++++++++------
1 file changed, 14 insertions(+), 6 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-10-25 13:19:07 UTC (rev 518866)
+++ PKGBUILD 2019-10-25 13:19:08 UTC (rev 518867)
@@ -4,25 +4,32 @@
pkgbase=virtualbox-modules-arch
pkgname=('virtualbox-host-modules-arch' 'virtualbox-guest-modules-arch')
pkgver=6.0.14
-pkgrel=2
+pkgrel=3
arch=('x86_64')
url='http://virtualbox.org'
license=('GPL')
-depends=('linux')
makedepends=('linux-headers'
"virtualbox-host-dkms>=$pkgver"
"virtualbox-guest-dkms>=$pkgver")
+build() {
+ _kernver=$(</usr/src/linux/version)
+
+ dkms build --dkmstree "$srcdir" -m vboxhost/${pkgver}_OSE -k $_kernver
+ dkms build --dkmstree "$srcdir" -m vboxsf/${pkgver}_OSE -k $_kernver
+}
+
package_virtualbox-host-modules-arch(){
_kernver="$(</usr/src/linux/version)"
pkgdesc='Virtualbox host kernel modules for Arch Kernel'
+ depends=('linux')
replaces=('virtualbox-modules' 'virtualbox-host-modules')
conflicts=('virtualbox-modules' 'virtualbox-host-modules'
'virtualbox-host-dkms')
provides=('VIRTUALBOX-HOST-MODULES')
- cd "/var/lib/dkms/vboxhost/${pkgver}_OSE/$_kernver/$CARCH/module"
- install -Dt "$pkgdir/usr/lib/modules/$_kernver/extramodules" -m0644 *
+ install -Dt "$pkgdir/usr/lib/modules/$_kernver/extramodules" -m0644 \
+ vboxhost/${pkgver}_OSE/$_kernver/$CARCH/module/*
# compress each module individually
find "$pkgdir" -name '*.ko' -exec xz -T1 {} +
@@ -35,13 +42,14 @@
package_virtualbox-guest-modules-arch(){
_kernver="$(</usr/src/linux/version)"
pkgdesc='Virtualbox guest kernel modules for Arch Kernel'
+ depends=('linux')
replaces=('virtualbox-archlinux-modules' 'virtualbox-guest-modules')
conflicts=('virtualbox-archlinux-modules' 'virtualbox-guest-modules'
'virtualbox-guest-dkms')
provides=('VIRTUALBOX-GUEST-MODULES')
- cd "/var/lib/dkms/vboxsf/${pkgver}_OSE/$_kernver/$CARCH/module"
- install -Dt "$pkgdir/usr/lib/modules/$_kernver/extramodules" -m0644 *
+ install -Dt "$pkgdir/usr/lib/modules/$_kernver/extramodules" -m0644 \
+ vboxsf/${pkgver}_OSE/$_kernver/$CARCH/module/*
# compress each module individually
find "$pkgdir" -name '*.ko' -exec xz -T1 {} +
More information about the arch-commits
mailing list