updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / dkms-virtualbox / PKGBUILD
blob8d87206e4a56a18f18016fe457995851b021132f
1 #Maintainer: John K. Luebs <jkluebs@luebsphoto.com>
3 pkgname=dkms-virtualbox
4 pkgver=4.1.8
5 pkgrel=1
6 pkgdesc="Kernel modules (DKMS) for VirtualBox"
7 arch=('i686' 'x86_64')
8 url='http://virtualbox.org'
9 license=('GPL')
10 depends=('dkms')
11 provides=("virtualbox-modules")
12 conflicts=("virtualbox-modules")
13 install=${pkgname}.install
14 makedepends=('libstdc++5' 'bin86' 'dev86' 'iasl' 'libxslt' 'libxml2' 'libpng' 'libidl2' 'xalan-c' 'sdl' 'linux-headers')
15 [[ $CARCH == "x86_64" ]] && makedepends=("${makedepends[@]}" 'gcc-multilib' 'lib32-glibc')
16 options=(!strip)
17 source=(http://download.virtualbox.org/virtualbox/${pkgver}/VirtualBox-${pkgver}.tar.bz2
18          LocalConfig.kmk dkms.conf)
19 sha1sums=('4683e30aa32d0d6ca764e5ce366d7216705cf0f2'
20           '881ee7b1252cd93a4837472fd9088648de3d5840'
21           '9a9e9bae9d9ffb97c2790f830b535861cff18036')
23 build() {
24     cd "$srcdir/VirtualBox-${pkgver}_OSE"
26     cp "$srcdir/LocalConfig.kmk" .
28     ./configure \
29         --with-linux=/usr/src/linux-${_kernver} \
30         --disable-java \
31         --disable-docs \
32         --disable-xpcom \
33         --disable-python \
34         --disable-sdl-ttf \
35         --disable-alsa \
36         --disable-pulse \
37         --disable-dbus  \
38         --disable-opengl \
39         --build-headless \
40         --nofatal
41     source ./env.sh
42     kmk all
45 package() {
46     source "$srcdir/VirtualBox-${pkgver}_OSE/env.sh"
47     cd "$srcdir/VirtualBox-${pkgver}_OSE/out/linux.$BUILD_PLATFORM_ARCH/release/bin"
49     mkdir -p "${pkgdir}/usr/src"
50     cp -a src "${pkgdir}/usr/src/vboxhost-${pkgver}"
51     cp ${srcdir}/dkms.conf "${pkgdir}/usr/src/vboxhost-${pkgver}"