aboutsummaryrefslogtreecommitdiff
path: root/system/virtualbox-extension-pack/virtualbox-extension-pack.SlackBuild
diff options
context:
space:
mode:
authorHeinz Wiesinger <pprkut@liwjatan.at>2014-05-11 20:34:42 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-05-12 07:36:10 +0700
commitb283bb933fd261fb1c6e4644f1b04125e018f051 (patch)
tree030b819533813e4613ff75d20150d0a7f6d1d92c /system/virtualbox-extension-pack/virtualbox-extension-pack.SlackBuild
parente7b85c5a8597d90456e301480f02c33d406f2e07 (diff)
system/virtualbox-extension-pack: Updated for version 4.3.10.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/virtualbox-extension-pack/virtualbox-extension-pack.SlackBuild')
-rw-r--r--system/virtualbox-extension-pack/virtualbox-extension-pack.SlackBuild48
1 files changed, 37 insertions, 11 deletions
diff --git a/system/virtualbox-extension-pack/virtualbox-extension-pack.SlackBuild b/system/virtualbox-extension-pack/virtualbox-extension-pack.SlackBuild
index 4cff01a8c8981..c5bbb21a24f6c 100644
--- a/system/virtualbox-extension-pack/virtualbox-extension-pack.SlackBuild
+++ b/system/virtualbox-extension-pack/virtualbox-extension-pack.SlackBuild
@@ -2,15 +2,30 @@
# Slackware build script for virtualbox-extension-pack
-# Written by Vliegendehuiskat
-# E-mail: vliegendehuiskat [at] gmail [dot] com
+# Originally written by Vliegendehuiskat, vliegendehuiskat [at] gmail [dot] com
-# This script is released in the public domain.
-# I am not responsible for any consequences that follow from the
-# incorrect use of this script.
+# Copyright 2014 Heinz Wiesinger, Amsterdam, The Netherlands
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=virtualbox-extension-pack
-VERSION=${VERSION:-4.2.10}
+VERSION=${VERSION:-4.3.10}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -43,10 +58,12 @@ fi
set -e
+EXTPACK="Oracle_VM_VirtualBox_Extension_Pack"
+
rm -rf $PKG
-mkdir -p $PKG/usr/lib$LIBDIRSUFFIX/virtualbox/ExtensionPacks/Oracle_VM_VirtualBox_Extension_Pack $OUTPUT
-cd $PKG/usr/lib$LIBDIRSUFFIX/virtualbox/ExtensionPacks/Oracle_VM_VirtualBox_Extension_Pack
-tar xvf $CWD/Oracle_VM_VirtualBox_Extension_Pack-$VERSION.vbox-extpack
+mkdir -p $PKG/usr/lib$LIBDIRSUFFIX/virtualbox/ExtensionPacks/$EXTPACK $OUTPUT
+cd $PKG/usr/lib$LIBDIRSUFFIX/virtualbox/ExtensionPacks/$EXTPACK
+tar xvf $CWD/$EXTPACK-$VERSION.vbox-extpack
chown -R root:root .
find -L . \
@@ -55,9 +72,18 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
- mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+# Cleanup superfluous platforms. Although the platforms are kept when you install
+# the extpack over the menu manually, I don't really see the need for it. -HW
+rm -rf win.* darwin.* solaris.*
+if [ "$ARCH" = "x86_64" ]; then
+ rm -rf linux.x86
+else
+ rm -rf linux.amd64
+fi
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
- $PKG/usr/lib$LIBDIRSUFFIX/virtualbox/ExtensionPacks/Oracle_VM_VirtualBox_Extension_Pack/ExtPack-license.txt \
+ $PKG/usr/lib$LIBDIRSUFFIX/virtualbox/ExtensionPacks/$EXTPACK/ExtPack-license.txt \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild