blob: e0f0d3b2dbdb28d98723b0a53cefa8cf87fc8b1d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
#!/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=3.4.0.264911
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i686 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
fi
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" != "i686" ]; then
printf "\n\tThis is i686 only - sorry.\n\n" ; exit 1
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}
|