summaryrefslogtreecommitdiff
path: root/games/SecondLife/SecondLife.SlackBuild
diff options
context:
space:
mode:
authorDaniel R <danielrodriguez.es@gmail.com>2010-05-13 00:58:05 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-13 00:58:05 +0200
commit798543c63631ba72a4ed22449d9b6e26c2a83d7a (patch)
tree93ae0afa5da9f2c20e79a544794dde5fc0d10e28 /games/SecondLife/SecondLife.SlackBuild
parentccd0166a2e0f2cf2b799128845d9d05a73ea5448 (diff)
downloadslackbuilds-798543c63631ba72a4ed22449d9b6e26c2a83d7a.tar.gz
games/SecondLife: Added to 13.0 repository
Diffstat (limited to 'games/SecondLife/SecondLife.SlackBuild')
-rw-r--r--games/SecondLife/SecondLife.SlackBuild55
1 files changed, 55 insertions, 0 deletions
diff --git a/games/SecondLife/SecondLife.SlackBuild b/games/SecondLife/SecondLife.SlackBuild
new file mode 100644
index 0000000000..ba2e1f7216
--- /dev/null
+++ b/games/SecondLife/SecondLife.SlackBuild
@@ -0,0 +1,55 @@
+#!/bin/sh
+
+## Written by Daniel R. <danielrodriguez.es@gmail.com>
+
+# Based on scripts by the SlackBuilds.org project and slacky.eu
+# This is an adaptation of the original script at slacky.eu repository
+
+PRGNAM=SecondLife
+VERSION=1.23.5.136262
+ARCH=${ARCH:-i686}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "x86_64" ]; then
+ printf "\n\tThis is i686 only - sorry.\n\n" ; exit 1
+else
+ ARCH=i686
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+tar xvf $CWD/$PRGNAM-$ARCH-$VERSION.tar.bz2
+
+mkdir -p $PKG/opt
+mv $PRGNAM-$ARCH-$VERSION $PKG/opt/$PRGNAM
+
+mkdir -p $PKG/usr/share/{applications,pixmaps}
+cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop
+cp $PKG/opt/$PRGNAM/secondlife_icon.png \
+ $PKG/usr/share/pixmaps/secondlife_icon.png
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+mv $PKG/opt/$PRGNAM/*.txt $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
+
+# Fixup some ownership and permissions
+chown -R root:root $PKG
+find $PKG -type d -exec chmod 755 {} \;
+chmod -R u+rw,go+r-w,a-s $PKG
+find $PKG/opt/SecondLife/skins/default/xui/pl/ -type f -exec chmod 0644 {} \;
+
+cd $PKG
+/sbin/makepkg -l y -c n -p $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}