Commit 8943cbf2 authored by Luca Giambonini's avatar Luca Giambonini

new virtualbox-modules-chakra [staging]

parent 3f8f2900
Pipeline #4234 passed with stages
in 4 minutes and 34 seconds
pkgbase=virtualbox-modules-chakra
pkgname=('virtualbox-host-modules-chakra' 'virtualbox-guest-modules-chakra')
pkgver=6.0.12
pkgrel=1
arch=('x86_64')
url='http://virtualbox.org'
license=('GPL')
depends=('linux')
makedepends=('linux-headers'
"virtualbox-host-dkms>=$pkgver"
"virtualbox-guest-dkms>=$pkgver")
_extramodules=extramodules-CHAKRA
package_virtualbox-host-modules-chakra(){
_kernver="$(cat /usr/lib/modules/$_extramodules/version)"
pkgdesc='Virtualbox host kernel modules for Chakra Kernel'
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" -m0644 *
# 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-chakra(){
_kernver="$(cat /usr/lib/modules/$_extramodules/version)"
pkgdesc='Virtualbox guest kernel modules for Chakra Kernel'
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/${pkgver}_OSE/$_kernver/$CARCH/module"
install -Dt "$pkgdir/usr/lib/modules/$_extramodules" -m0644 *
# compress each module individually
find "$pkgdir" -name '*.ko' -exec xz -T1 {} +
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment