Permalink
Browse files

virtualbox-bin: updated upstream

  • Loading branch information...
1 parent 9af9ef6 commit af8b3d47b7c914bf633381905c6286ccb43eb81f @mosra committed Mar 22, 2012
Showing with 39 additions and 25 deletions.
  1. +18 −14 virtualbox-bin/PKGBUILD
  2. +21 −11 virtualbox-bin/install
View
@@ -1,4 +1,4 @@
-# Maintainer: Sebastien Luttringer <seblu+arch@seblu.net>
+# Maintainer: Sébastien Luttringer <seblu@aur.archlinux.org>
# Contributor: Lukas Fleischer <archlinux at cryptocrack dot de>
# Contributor: thotypous <matiasΘarchlinux-br·org>
# Contributor: xduugu <xduuguΘgmx·com>
@@ -7,24 +7,28 @@
# Contributor: iggy <iggy.mfΘgmail·com>
pkgname=virtualbox-bin
-pkgver=4.1.8
-_build=75467
+pkgver=4.1.10
+_build=76795
pkgrel=1
pkgdesc='Oracle VM VirtualBox Binary Edition'
arch=('i686' 'x86_64')
url='http://virtualbox.org/'
license=('GPL2')
-depends=('libidl2' 'libxcursor' 'libxinerama' 'libxslt' 'curl' 'linux-headers' 'python2')
options=('!strip')
+depends=(
+ 'fontconfig'
+ 'gcc'
+ 'libgl'
+ 'libidl2'
+ 'libxcursor'
+ 'libxinerama'
+ 'libxmu'
+ 'linux-headers'
+ 'python2'
+ 'sdl'
+)
optdepends=('virtualbox-ext-oracle: for Oracle extensions'
- 'dkms: for handling kernel modules with dkms'
- 'qt: for GUI support'
- 'sdl: for VBoxSDL and GUI support'
- 'mesa: for OpenGL support'
- 'libgl: for shared OpenGL support'
- 'libxt: for shared clipboard support'
- 'alsa-lib: for ALSA support'
- 'pulseaudio: for PulseAudio support')
+ 'dkms: for handling kernel modules with dkms')
provides=("virtualbox=${pkgver}")
conflicts=('virtualbox' 'virtualbox-ose' 'virtualbox-modules')
replaces=('virtualbox_bin')
@@ -40,13 +44,13 @@ source=(
'vboxweb.rc'
'vboxweb.conf'
)
-md5sums=('3a8f19609518416be9f3e0c833fcc25b'
+md5sums=('b548c391cdf3f6f5991e97049abc6d7e'
'fe60f9510502bea67383d9198ae8c13c'
'e7a94c97b1b1e1e843c1bb85181d2de8'
'951bf4a5524e919fc4aaee6f46041e3d'
'c159d683ba1947290fc2ad2c64194150'
'3ac185709bfe688bb753c46e170d0546')
-[[ "${CARCH}" = i686 ]] && md5sums[0]='22426a818a4973fdf54ab91e4a692d85'
+[[ "${CARCH}" = i686 ]] && md5sums[0]='1d99faad8759d9b26ce168c12af12c31'
_installdir='/opt/VirtualBox'
package() {
View
@@ -1,18 +1,31 @@
+#!/bin/bash
+
+update_databases() {
+ # Update mime database
+ [[ -x /usr/bin/update-mime-database ]] &&
+ /usr/bin/update-mime-database /usr/share/mime &>/dev/null
+
+ # Update xdg icon database
+ [[ -x /usr/bin/xdg-icon-resource ]] &&
+ /usr/bin/xdg-icon-resource forceupdate --theme hicolor &>/dev/null
+
+ # Update desktop database
+ [[ -x /usr/bin/update-desktop-database ]] &&
+ /usr/bin/update-desktop-database -q &>/dev/null
+}
+
post_install() {
# Add vboxusers group, GID 108 is reserved (http://wiki.archlinux.org/index.php/UID_and_GID_list),
getent group vboxusers &> /dev/null || groupadd -f -g 108 vboxusers
# Load new udev rule for module vboxdrv
udevadm control --reload-rules
- # Update mime database
- [[ -x =update-mime-database ]] && update-mime-database /usr/share/mime &>/dev/null
-
- # Update desktop database
- [[ -x =update-desktop-database ]] && update-desktop-database -q &>/dev/null
+ # Update databases
+ update_databases
# Build new module
- /etc/rc.d/vboxdrv setup
+ #/etc/rc.d/vboxdrv setup
# Show warnings
/bin/cat <<EOF
@@ -54,11 +67,8 @@ post_remove() {
# Remove any run files
rm -Rf "/var/run/VirtualBox"
- # Update mime database
- [[ -x =update-mime-database ]] && update-mime-database /usr/share/mime &>/dev/null
-
- # Update desktop database
- [[ -x =update-desktop-database ]] && update-desktop-database -q &>/dev/null
+ # Update databases
+ update_databases
# remove vboxusers group
groupdel vboxusers &>/dev/null || true

0 comments on commit af8b3d4

Please sign in to comment.