summaryrefslogtreecommitdiff
path: root/academic/smath-studio
diff options
context:
space:
mode:
Diffstat (limited to 'academic/smath-studio')
-rw-r--r--academic/smath-studio/icons.zipbin65265 -> 0 bytes
-rw-r--r--academic/smath-studio/slack-desc2
-rw-r--r--academic/smath-studio/smath-studio.SlackBuild46
-rw-r--r--academic/smath-studio/smath-studio.info8
-rw-r--r--academic/smath-studio/smath-studio.sh2
5 files changed, 25 insertions, 33 deletions
diff --git a/academic/smath-studio/icons.zip b/academic/smath-studio/icons.zip
deleted file mode 100644
index ee80d96997..0000000000
--- a/academic/smath-studio/icons.zip
+++ /dev/null
Binary files differ
diff --git a/academic/smath-studio/slack-desc b/academic/smath-studio/slack-desc
index 1356380470..c928325b6c 100644
--- a/academic/smath-studio/slack-desc
+++ b/academic/smath-studio/slack-desc
@@ -6,7 +6,7 @@
# customary to leave one space after the ':' except on otherwise blank lines.
|-----handy-ruler------------------------------------------------------|
-smath-studio: SMath Studio (computer algebra system)
+smath-studio: smath-studio (computer algebra system)
smath-studio:
smath-studio: SMath Studio is a freeware, closed source, mathematical notebook
smath-studio: program similar to Mathcad.
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
diff --git a/academic/smath-studio/smath-studio.info b/academic/smath-studio/smath-studio.info
index a9ccbb8339..eaaa3fae98 100644
--- a/academic/smath-studio/smath-studio.info
+++ b/academic/smath-studio/smath-studio.info
@@ -1,8 +1,10 @@
PRGNAM="smath-studio"
-VERSION="0.89"
+VERSION="0.91"
HOMEPAGE="http://smath.info"
-DOWNLOAD="http://smath.info/upload/Data/20100723060056964.gz"
-MD5SUM="660c064598b5ef74878cf15452095ea9"
+DOWNLOAD="http://omploader.org/vY3V1ZA/SMathStudioDesktop.0_91.Mono.tar.gz \
+ http://omploader.org/vY3V1ZQ/SMathStudio.Icons.zip"
+MD5SUM="36b0348c65249c654957d8d49e5973f2 \
+ 1dd3ff0477b5c3c57fb815320a387643"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="Fridrich von Stauffenberg"
diff --git a/academic/smath-studio/smath-studio.sh b/academic/smath-studio/smath-studio.sh
index 73c501af2f..6ce9a4a0de 100644
--- a/academic/smath-studio/smath-studio.sh
+++ b/academic/smath-studio/smath-studio.sh
@@ -1,4 +1,4 @@
#!/bin/sh
-cd $(dirname $(readlink -f $0))
+cd /opt/smath-studio
exec mono ./SMathStudio_Desktop.exe "$@"