[arch-commits] Commit in virtualbox-modules-arch/repos (2 files)
Jan Steffens
heftig at archlinux.org
Thu Dec 5 15:07:48 UTC 2019
Date: Thursday, December 5, 2019 @ 15:07:48
Author: heftig
Revision: 535624
archrelease: copy trunk to community-testing-x86_64
Added:
virtualbox-modules-arch/repos/community-testing-x86_64/
virtualbox-modules-arch/repos/community-testing-x86_64/PKGBUILD
(from rev 535623, virtualbox-modules-arch/trunk/PKGBUILD)
----------+
PKGBUILD | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 58 insertions(+)
Copied: virtualbox-modules-arch/repos/community-testing-x86_64/PKGBUILD (from rev 535623, virtualbox-modules-arch/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2019-12-05 15:07:48 UTC (rev 535624)
@@ -0,0 +1,58 @@
+# Maintainer: Sébastien Luttringer
+# Contributor: Ionut Biru <ibiru at archlinux.org>
+
+pkgbase=virtualbox-modules-arch
+pkgname=('virtualbox-host-modules-arch' 'virtualbox-guest-modules-arch')
+pkgver=6.0.14
+pkgrel=12
+arch=('x86_64')
+url='http://virtualbox.org'
+license=('GPL')
+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')
+
+ 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 vboxpci vboxnetadp vboxnetflt |
+ install -D -m0644 /dev/stdin "$pkgdir/usr/lib/modules-load.d/$pkgname.conf"
+}
+
+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')
+
+ 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 {} +
+}
+
+# vim:set sw=2 et:
More information about the arch-commits
mailing list