[arch-commits] Commit in virtualbox-modules-arch/repos (2 files)
Jan Steffens
heftig at archlinux.org
Thu Dec 7 22:15:37 UTC 2017
Date: Thursday, December 7, 2017 @ 22:15:37
Author: heftig
Revision: 273207
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 273206, virtualbox-modules-arch/trunk/PKGBUILD)
----------+
PKGBUILD | 66 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 66 insertions(+)
Copied: virtualbox-modules-arch/repos/community-staging-x86_64/PKGBUILD (from rev 273206, virtualbox-modules-arch/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2017-12-07 22:15:37 UTC (rev 273207)
@@ -0,0 +1,66 @@
+# $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.2
+pkgrel=8
+_linux_major=4
+_linux_minor=14
+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 gzip -n {} +
+
+ # 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/vboxguest/${pkgver}_OSE/$_kernver/$CARCH/module"
+ install -Dt "$pkgdir/usr/lib/modules/$_extramodules" -m644 *
+
+ # compress each module individually
+ find "$pkgdir" -name '*.ko' -exec gzip -n {} +
+
+ # systemd module loading
+ printf "vboxguest\nvboxsf\nvboxvideo\n" |
+ install -Dm644 /dev/stdin "$pkgdir/usr/lib/modules-load.d/$pkgname.conf"
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list