Commit 517842f0 authored by Seblu's avatar Seblu
Browse files

up vbox


git-svn-id: https://seblu.net/s/archpkg@228 02741741-5192-46b8-8916-7152b19231d9
parent 8aae7bb6
Loading
Loading
Loading
Loading
+13 −9
Original line number Diff line number Diff line
@@ -9,7 +9,7 @@
pkgname=virtualbox-bin
pkgver=4.1.12
_build=77245
pkgrel=3
pkgrel=4
pkgdesc='Oracle VM VirtualBox Binary Edition'
arch=('i686' 'x86_64')
url='http://virtualbox.org/'
@@ -81,7 +81,7 @@ package() {
  #done

  # Patch "vboxshell.py" to use Python 2.x instead of Python 3
  sed -i 's#/usr/bin/python#\02#' "${pkgdir}/${_installdir}/vboxshell.py"
  sed -i 's#/usr/bin/python#\02#' vboxshell.py

  # Update Arch initscripts way of life in VBox.sh
  sed -i -e 's,sudo /etc/init.d/vboxdrv setup,/etc/rc.d/vboxdrv setup,g' \
@@ -99,10 +99,13 @@ package() {

  # Install udev rules
  install -D -m 0644 "${srcdir}/10-vboxdrv.rules" "${pkgdir}/usr/lib/udev/rules.d/10-vboxdrv.rules"
  ln -s "${_installdir}/VBoxCreateUSBNode.sh" "${pkgdir}/usr/lib/udev/VBoxCreateUSBNode.sh"
  # we need to move and not symlink VBoxCreateUSBNode.sh in /usr/lib/udev to avoid udevd
  # to look /opt when /opt is not mounted. This can be done until VBoxCreateUSBNode.sh doesn't
  # need more stuff from /opt
  mv VBoxCreateUSBNode.sh "${pkgdir}/usr/lib/udev/"

  # Install the SDK
  cd "${pkgdir}/${_installdir}/sdk/installer"
  cd "sdk/installer"
  VBOX_INSTALL_PATH="${_installdir}" python2 vboxapisetup.py install --root "${pkgdir}"
  rm -r -f build
  cd "${pkgdir}/${_installdir}"
@@ -133,7 +136,7 @@ package() {
  ln -s "${_installdir}/src/vboxhost" "${pkgdir}/usr/src/vboxhost-${pkgver}"

  # Symlink icons
  cd "${pkgdir}/${_installdir}/icons"
  cd icons
  for _dir in *; do
    cd "${_dir}"
    install -d -m 0755 "${pkgdir}/usr/share/icons/hicolor/${_dir}/"{apps,mimetypes}
@@ -157,7 +160,8 @@ package() {
  chmod 0644 "${pkgdir}/etc/vbox/vbox.cfg"

  # Create the directory below if it doesn't exist
  install -d -m 0755 "${pkgdir}/var/run/VirtualBox"
  # No more need as /var/run is tmpfs
  #install -d -m 0755 "${pkgdir}/var/run/VirtualBox"
}

# vim:set ts=2 sw=2 ft=sh et: