summaryrefslogtreecommitdiff
path: root/virtualbox/Pkgfile
blob: d6bde85a4e3ccdd99c00db8bd4ce721c22df4610 (plain)
    1 # Description: VirtualBox is a general-purpose full virtualizer for x86 hardware.
    2 # URL: http://www.virtualbox.org/
    3 # Maintainer: Jose V Beneyto, sepen at users dot sourceforge dot net
    4 # Packager: Jose V Beneyto, sepen at users dot sourceforge dot net
    5 # Depends on: bin86,dev86,hal,libsdl,libidl,qt4,xalan-c,iasl,xorg-libxmu,libcap
    6 
    7 name=virtualbox
    8 version=3.0.6
    9 release=1
   10 source=(http://download.virtualbox.org/$name/${version%-*}/VirtualBox-${version}-OSE.tar.bz2 \
   11         $name 60-vboxdrv.rules $name.desktop)
   12 
   13 build() {
   14   # environment value
   15   [ ! -z $KERN_DIR ] && KARG="KERN_DIR=$KERN_DIR"
   16 
   17   cd VirtualBox-${version%-*}_OSE
   18   # compile
   19   ./configure --with-qt4-dir=/usr/share/qt4 \
   20               --disable-hardening \
   21               --ose \
   22               --disable-pulse
   23   source ./env.sh
   24   kmk all
   25   # compile kernel modules
   26   cd out/linux.x86/release/bin/src
   27   make $KARG
   28   # install kernel modules
   29   install -d $PKG/lib/modules/$(uname -r)/kernel/drivers/misc
   30   install -m 0644 *.ko $PKG/lib/modules/$(uname -r)/kernel/drivers/misc
   31   # remove superfluous files
   32   rm -rf $SRC/VirtualBox-${version%-*}_OSE/out/linux.x86/release/bin/{sdk/samples,testcase,nls*}
   33   find $SRC/VirtualBox-${version%-*}_OSE/out/linux.x86/release/bin -type f -name 'tst*' -exec rm -rf {} \;
   34   # do the rest
   35   install -D -m 0644 $SRC/60-vboxdrv.rules $PKG/etc/udev/rules.d/60-vboxdrv.rules
   36   install -d $PKG/usr/{bin,share/$name,share/pixmaps}
   37   install -m 0755 $SRC/$name $PKG/usr/bin/$name
   38   mv $SRC/VirtualBox-${version%-*}_OSE/out/linux.x86/release/{bin,lib} $PKG/usr/share/$name
   39   chmod +s $PKG/usr/share/$name/bin/VirtualBox
   40   install -D -m 0644 $SRC/$name.desktop $PKG/usr/share/applications/$name.desktop
   41   mv $PKG/usr/share/$name/bin/VBox.png $PKG/usr/share/pixmaps/$name.png
   42   rm $PKG/usr/share/$name/bin/{VBox.sh,SUP*nstall}
   43 }

Generated by cgit