summaryrefslogtreecommitdiff
path: root/academic/smath-studio/smath-studio.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'academic/smath-studio/smath-studio.SlackBuild')
-rw-r--r--academic/smath-studio/smath-studio.SlackBuild46
1 files changed, 18 insertions, 28 deletions
diff --git a/academic/smath-studio/smath-studio.SlackBuild b/academic/smath-studio/smath-studio.SlackBuild
index 163f33e4de..753bf8cce0 100644
--- a/academic/smath-studio/smath-studio.SlackBuild
+++ b/academic/smath-studio/smath-studio.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for SMath Studio
-# Copyright 2011 Fridrich von Stauffenberg <cancellor2@gmail.com>
+# Copyright 2011-2012 Fridrich von Stauffenberg <cancellor2@gmail.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,12 +23,12 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=smath-studio
-VERSION=${VERSION:-0.89}
+VERSION=${VERSION:-0.91}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-ORIG_FILENAME="20100723060056964.gz"
-ORIG_PRGNAM=SMathStudioDesktop
+ORIG_PRGNAM=SMathStudio
+ORIG_FILENAME=${ORIG_PRGNAM}Desktop
ORIG_VERSION=${VERSION/./_}
ARCH=noarch
@@ -41,36 +41,26 @@ OUTPUT=${OUTPUT:-/tmp}
set -e
rm -rf $PKG
-mkdir -p $TMP $PKG $OUTPUT
-cd $TMP
-rm -rf $ORIG_PRGNAM.$ORIG_VERSION.Mono
-tar xvf $CWD/$ORIG_FILENAME
-cd $ORIG_PRGNAM.$ORIG_VERSION.Mono
-
-mkdir icons
-unzip $CWD/icons.zip -d icons
-
+mkdir -p $OUTPUT $TMP $PKG/opt/$PRGNAM
+cd $PKG/opt/$PRGNAM
+tar xvf $CWD/$ORIG_FILENAME.$ORIG_VERSION.Mono.tar.gz
+unzip $CWD/$ORIG_PRGNAM.Icons.zip
chown -R root:root .
-
-mkdir -p $PKG/opt/$PRGNAM
-mv * $PKG/opt/$PRGNAM
-
-mkdir -p $PKG/usr/share/applications
-cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop
-
-rm -f $PKG/opt/$PRGNAM/smathstudio_desktop_mono
-cat $CWD/$PRGNAM.sh > $PKG/opt/$PRGNAM/$PRGNAM
-chmod 755 $PKG/opt/$PRGNAM/$PRGNAM
-
-mkdir -p $PKG/usr/bin
-ln -s /opt/$PRGNAM/$PRGNAM $PKG/usr/bin
+find . -type d -exec chmod 755 {} \;
+find . -type f -exec chmod 644 {} \;
for SIZE in 16 24 32 48 64 96 128 256 ; do
mkdir -p $PKG/usr/share/icons/hicolor/$SIZE'x'$SIZE/apps
- ln -s /opt/$PRGNAM/icons/SSLogo$SIZE.png \
- $PKG/usr/share/icons/hicolor/$SIZE'x'$SIZE/apps/$PRGNAM.png
+ mv SSLogo$SIZE.png $PKG/usr/share/icons/hicolor/$SIZE'x'$SIZE/apps/$PRGNAM.png
done
+mkdir -p $PKG/usr/bin
+cat $CWD/$PRGNAM.sh > $PKG/usr/bin/$PRGNAM
+chmod 755 $PKG/usr/bin/$PRGNAM
+
+mkdir -p $PKG/usr/share/applications
+cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild