diff options
author | Fridrich von Stauffenberg <cancellor2@gmail.com> | 2012-04-15 22:18:04 -0400 |
---|---|---|
committer | Erik Hanson <erik@slackbuilds.org> | 2012-04-16 05:35:59 -0500 |
commit | 9045dbaf8a57a6ebd62efe96de837225a5b04fb6 (patch) | |
tree | 7b65eb0c5a28c41fb7b901ef93e25509539384fa /academic/smath-studio/smath-studio.SlackBuild | |
parent | af844f8c9cdcaabba33285609994346175b8235e (diff) | |
download | slackbuilds-9045dbaf8a57a6ebd62efe96de837225a5b04fb6.tar.gz |
academic/smath-studio: Updated for version 0.91.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'academic/smath-studio/smath-studio.SlackBuild')
-rw-r--r-- | academic/smath-studio/smath-studio.SlackBuild | 46 |
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 |