summaryrefslogtreecommitdiff
path: root/virtualbox-ext-oracle
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-06-26 14:27:56 +0200
committerErich Eckner <git@eckner.net>2017-06-26 14:27:56 +0200
commit4efcacc9eaad5a637f89dd2aa7980589286bd41a (patch)
tree110e015413831fd9bafbbcf3638f56e8c175bc36 /virtualbox-ext-oracle
parent8469288553923e3f98758796887327397f90c019 (diff)
downloadarchlinuxewe-4efcacc9eaad5a637f89dd2aa7980589286bd41a.tar.xz
virtualbox-ext-oracle neu
Diffstat (limited to 'virtualbox-ext-oracle')
-rw-r--r--virtualbox-ext-oracle/PKGBUILD33
-rw-r--r--virtualbox-ext-oracle/virtualbox-ext-oracle.install17
2 files changed, 50 insertions, 0 deletions
diff --git a/virtualbox-ext-oracle/PKGBUILD b/virtualbox-ext-oracle/PKGBUILD
new file mode 100644
index 000000000..46142033b
--- /dev/null
+++ b/virtualbox-ext-oracle/PKGBUILD
@@ -0,0 +1,33 @@
+# Maintainer: Erich Eckner <arch at eckner dot net>
+# Contributor: Sébastien Luttringer
+pkgname=virtualbox-ext-oracle
+pkgver=5.1.22
+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")
+sha512sums=('55841287d580d984142a0572aff4124a180bbe10cb8536426992b5d9e0ce0f3f6d3858aae12de728995a237101a581aa6500b312e457b812f079e3ad67e7ec10')
+
+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')
+ 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:
diff --git a/virtualbox-ext-oracle/virtualbox-ext-oracle.install b/virtualbox-ext-oracle/virtualbox-ext-oracle.install
new file mode 100644
index 000000000..4d7372655
--- /dev/null
+++ b/virtualbox-ext-oracle/virtualbox-ext-oracle.install
@@ -0,0 +1,17 @@
+post_install () {
+ VBoxManage extpack install --accept-license="$(sha256sum /usr/share/licenses/virtualbox-ext-oracle/PUEL | head --bytes=64)" "/usr/share/virtualbox/extensions/Oracle_VM_VirtualBox_Extension_Pack-${1%%-*}.vbox-extpack" >/dev/null
+}
+
+pre_upgrade() {
+ post_remove "$@"
+}
+
+post_upgrade() {
+ post_install "$@"
+}
+
+post_remove() {
+ VBoxManage extpack uninstall 'Oracle VM VirtualBox Extension Pack' >/dev/null
+}
+
+# vim:set ts=2 sw=2 ft=sh et: