[arch-commits] Commit in virtualbox-modules-arch/repos (2 files)

Jan Steffens heftig at archlinux.org
Wed May 2 22:44:29 UTC 2018


    Date: Wednesday, May 2, 2018 @ 22:44:28
  Author: heftig
Revision: 318711

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 318710, virtualbox-modules-arch/trunk/PKGBUILD)

----------+
 PKGBUILD |   62 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 62 insertions(+)

Copied: virtualbox-modules-arch/repos/community-staging-x86_64/PKGBUILD (from rev 318710, virtualbox-modules-arch/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-05-02 22:44:28 UTC (rev 318711)
@@ -0,0 +1,62 @@
+# $Id$
+# 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=5.2.10
+pkgrel=6
+_linux_major=4
+_linux_minor=16
+arch=('x86_64')
+url='http://virtualbox.org'
+license=('GPL')
+makedepends=("linux>=${_linux_major}.${_linux_minor}"
+             "linux<${_linux_major}.$((_linux_minor+1))"
+             "linux-headers>=${_linux_major}.${_linux_minor}"
+             "linux-headers<${_linux_major}.$((_linux_minor+1))"
+             "virtualbox-host-dkms>=$pkgver"
+             "virtualbox-guest-dkms>=$pkgver")
+
+_extramodules=extramodules-${_linux_major}.${_linux_minor}-ARCH
+
+package_virtualbox-host-modules-arch(){
+  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+  pkgdesc='Virtualbox host kernel modules for Arch Kernel'
+  depends=("linux>=${_linux_major}.${_linux_minor}"
+           "linux<${_linux_major}.$((_linux_minor+1))")
+  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/$_extramodules" -m644 *
+
+  # compress each module individually
+  find "$pkgdir" -name '*.ko' -exec xz -T1 {} +
+
+  # systemd module loading
+  printf "vboxdrv\nvboxpci\nvboxnetadp\nvboxnetflt\n" |
+    install -Dm644 /dev/stdin "$pkgdir/usr/lib/modules-load.d/$pkgname.conf"
+}
+
+package_virtualbox-guest-modules-arch(){
+  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+  pkgdesc='Virtualbox guest kernel modules for Arch Kernel'
+  license=('GPL')
+  depends=("linux>=${_linux_major}.${_linux_minor}"
+           "linux<${_linux_major}.$((_linux_minor+1))")
+  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-4.16/${pkgver}_OSE/$_kernver/$CARCH/module"
+  install -Dt "$pkgdir/usr/lib/modules/$_extramodules" -m644 *
+
+  # compress each module individually
+  find "$pkgdir" -name '*.ko' -exec xz -T1 {} +
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list