Loading virtualbox-bin/PKGBUILD +13 −9 Original line number Diff line number Diff line Loading @@ -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/' Loading Loading @@ -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' \ Loading @@ -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}" Loading Loading @@ -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} Loading @@ -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: Loading
virtualbox-bin/PKGBUILD +13 −9 Original line number Diff line number Diff line Loading @@ -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/' Loading Loading @@ -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' \ Loading @@ -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}" Loading Loading @@ -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} Loading @@ -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: