Skip to content

Instantly share code, notes, and snippets.

@nerdius
Last active October 21, 2017 11:17
Show Gist options
  • Save nerdius/da59150b7ba4731125063fa8d0b994ab to your computer and use it in GitHub Desktop.
Save nerdius/da59150b7ba4731125063fa8d0b994ab to your computer and use it in GitHub Desktop.
PKGBUILD for VirtualBox Extension Pack 5.1.28. Helps avoiding the version mismatch for VirtualBox 5.1.28.
# Maintainer: Sébastien Luttringer
# Modified by: Giorgi Gzirishvili
pkgname=virtualbox-ext-oracle
pkgver=5.1.28
pkgrel=1
pkgdesc='Oracle VM VirtualBox Extension Pack'
arch=('any')
url='http://www.virtualbox.org/'
license=('custom:PUEL')
options=('!strip')
install=virtualbox-ext-oracle.install
source=("http://download.virtualbox.org/virtualbox/$pkgver/Oracle_VM_VirtualBox_Extension_Pack-$pkgver.vbox-extpack")
noextract=("Oracle_VM_VirtualBox_Extension_Pack-$pkgver.vbox-extpack")
sha256sums=('1a2551b204bd53a252a75a4653b983427bb15d473bc77b14149c7870ce049871')
prepare() {
# shrink uneeded cpuarch
[[ -d shrunk ]] || mkdir shrunk
tar xfC "Oracle_VM_VirtualBox_Extension_Pack-$pkgver.vbox-extpack" shrunk
rm -r shrunk/{darwin*,solaris*,win*}
tar -c --gzip --file shrunk.vbox-extpack -C shrunk .
}
package() {
depends=('virtualbox>=5.1.28')
optdepends=('rdesktop: client to connect vm via RDP')
install -Dm 644 shrunk.vbox-extpack \
"$pkgdir/usr/share/virtualbox/extensions/Oracle_VM_VirtualBox_Extension_Pack-$pkgver.vbox-extpack"
install -Dm 644 shrunk/ExtPack-license.txt \
"$pkgdir/usr/share/licenses/$pkgname/PUEL"
}
# vim:set ts=2 sw=2 et:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment