[arch-commits] Commit in virtualbox-modules-arch/repos (2 files)
Christian Hesse
eworm at archlinux.org
Wed Apr 1 12:28:33 UTC 2020
Date: Wednesday, April 1, 2020 @ 12:28:32
Author: eworm
Revision: 608875
archrelease: copy trunk to community-staging-x86_64
Added:
virtualbox-modules-arch/repos/community-staging-x86_64/
virtualbox-modules-arch/repos/community-staging-x86_64/PKGBUILD
(from rev 608874, virtualbox-modules-arch/trunk/PKGBUILD)
----------+
PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
Copied: virtualbox-modules-arch/repos/community-staging-x86_64/PKGBUILD (from rev 608874, virtualbox-modules-arch/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2020-04-01 12:28:32 UTC (rev 608875)
@@ -0,0 +1,38 @@
+# Maintainer: Sébastien Luttringer
+# Contributor: Ionut Biru <ibiru at archlinux.org>
+
+pkgbase=virtualbox-modules-arch
+pkgname=('virtualbox-host-modules-arch')
+pkgver=6.1.4
+pkgrel=13
+arch=('x86_64')
+url='http://virtualbox.org'
+license=('GPL')
+makedepends=('linux-headers'
+ "virtualbox-host-dkms=$pkgver")
+
+build() {
+ _kernver=$(</usr/src/linux/version)
+
+ dkms build --dkmstree "$srcdir" -m vboxhost/${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')
+
+ 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