games/SecondLife: Added to 13.0 repository

This commit is contained in:
Daniel R 2010-05-13 00:58:05 +02:00 committed by Robby Workman
parent ccd0166a2e
commit 798543c636
6 changed files with 128 additions and 0 deletions

7
games/SecondLife/README Normal file
View file

@ -0,0 +1,7 @@
SecondLife (SL) is a virtual world developed by Linden Lab.
This package contains the client program which allows users to log
into SecondLife.
This is a repackaging of the original binary download available at
SecondLife website.

View file

@ -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}

View file

@ -0,0 +1,10 @@
[Desktop Entry]
Type=Application
Version=1.0
Name=Second Life
GenericName=Second Life Client
Icon=secondlife_icon
Exec=/opt/SecondLife/secondlife
Terminal=false
StartupNotify=false
Categories=Game;ActionGame;

View file

@ -0,0 +1,10 @@
PRGNAM="SecondLife"
VERSION="1.23.5.136262"
HOMEPAGE="http://secondlife.com/"
DOWNLOAD="http://download.cloud.secondlife.com/SecondLife-i686-1.23.5.136262.tar.bz2"
MD5SUM="4ef86b34f3daf0ac0ee3a82e88dcadbb"
DOWNLOAD_x86_64="UNSUPPORTED"
MD5SUM_x86_64=""
MAINTAINER="Daniel R."
EMAIL="<danielrodriguez.es@gmail.com>"
APPROVED="rworkman"

View file

@ -0,0 +1,27 @@
config() {
NEW="$1"
OLD="$(dirname $NEW)/$(basename $NEW .new)"
# If there's no config file by that name, mv it over:
if [ ! -r $OLD ]; then
mv $NEW $OLD
elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
# toss the redundant copy
rm $NEW
fi
# Otherwise, we leave the .new copy for the admin to consider...
}
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi
if [ -x /usr/bin/update-mime-database ]; then
/usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1
fi
if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
if [ -x /usr/bin/gtk-update-icon-cache ]; then
/usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1
fi
fi

View file

@ -0,0 +1,19 @@
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description. Line
# up the first '|' above the ':' following the base package name, and the '|' on
# the right side marks the last column you can put a character in. You must make
# exactly 11 lines for the formatting to be correct. It's also customary to
# leave one space after the ':'.
|-----handy-ruler------------------------------------------------------|
SecondLife: SecondLife (Virtual world by Linden Lab)
SecondLife:
SecondLife: SecondLife (SL) is a virtual world developed by Linden Lab.
SecondLife:
SecondLife: This package contains the client program which allows users to log
SecondLife: into SecondLife.
SecondLife:
SecondLife: Homepage: http://secondlife.com/
SecondLife:
SecondLife:
SecondLife: