[arch-commits] Commit in (5 files)
Christian Hesse
eworm at archlinux.org
Tue Apr 7 10:20:28 UTC 2020
Date: Tuesday, April 7, 2020 @ 10:20:27
Author: eworm
Revision: 612442
un-split virtualbox-host-modules-arch
Added:
virtualbox-host-modules-arch/
virtualbox-host-modules-arch/repos/
virtualbox-host-modules-arch/trunk/
virtualbox-host-modules-arch/trunk/PKGBUILD
Deleted:
virtualbox-modules-arch/
----------+
PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
Added: virtualbox-host-modules-arch/trunk/PKGBUILD
===================================================================
--- virtualbox-host-modules-arch/trunk/PKGBUILD (rev 0)
+++ virtualbox-host-modules-arch/trunk/PKGBUILD 2020-04-07 10:20:27 UTC (rev 612442)
@@ -0,0 +1,37 @@
+# Maintainer: Sébastien Luttringer
+# Contributor: Ionut Biru <ibiru at archlinux.org>
+
+pkgname='virtualbox-host-modules-arch'
+pkgver=6.1.4
+pkgrel=16
+pkgdesc='Virtualbox host kernel modules for Arch Kernel'
+arch=('x86_64')
+url='https://virtualbox.org/'
+license=('GPL')
+makedepends=('linux-headers'
+ "virtualbox-host-dkms=$pkgver")
+depends=('linux')
+replaces=('virtualbox-modules' 'virtualbox-host-modules')
+conflicts=('virtualbox-modules' 'virtualbox-host-modules'
+ 'virtualbox-host-dkms')
+provides=('VIRTUALBOX-HOST-MODULES')
+
+build() {
+ _kernver="$(</usr/src/linux/version)"
+
+ dkms build --dkmstree "$srcdir" -m vboxhost/${pkgver}_OSE -k ${_kernver}
+}
+
+package(){
+ _kernver="$(</usr/src/linux/version)"
+
+ 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 {} +
+
+ # systemd module loading
+ printf '%s\n' vboxdrv vboxnetadp vboxnetflt |
+ install -D -m0644 /dev/stdin "$pkgdir/usr/lib/modules-load.d/$pkgname.conf"
+}
More information about the arch-commits
mailing list