diff options
author | larryhaja <larryhaja@gmail.com> | 2013-11-13 18:25:39 -0800 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2013-11-13 23:02:14 -0600 |
commit | 666122bd8bede0be423ba8201580aede08b79c7c (patch) | |
tree | c0e32f0fc68b794686df65c5a965f91a1b801398 /academic | |
parent | 17cf6e9916f5eb2a7bd5c21daf168b8b719d2d1a (diff) | |
download | slackbuilds-666122bd8bede0be423ba8201580aede08b79c7c.tar.gz |
academic/wxMaxima: Upgraded to 13.04.2
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'academic')
-rw-r--r-- | academic/wxMaxima/doinst.sh | 6 | ||||
-rw-r--r-- | academic/wxMaxima/wxMaxima.SlackBuild | 36 | ||||
-rw-r--r-- | academic/wxMaxima/wxMaxima.info | 6 |
3 files changed, 37 insertions, 11 deletions
diff --git a/academic/wxMaxima/doinst.sh b/academic/wxMaxima/doinst.sh index 5fb28930db..3e5691a052 100644 --- a/academic/wxMaxima/doinst.sh +++ b/academic/wxMaxima/doinst.sh @@ -1,3 +1,9 @@ if [ -x /usr/bin/update-desktop-database ]; then /usr/bin/update-desktop-database -q usr/share/applications >/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 diff --git a/academic/wxMaxima/wxMaxima.SlackBuild b/academic/wxMaxima/wxMaxima.SlackBuild index c7a12b6bfd..16656cc32c 100644 --- a/academic/wxMaxima/wxMaxima.SlackBuild +++ b/academic/wxMaxima/wxMaxima.SlackBuild @@ -2,10 +2,28 @@ # Slackware build script for wxMaxima -# Written by Larry Hajali <larryhaja[at]gmail[dot]com> +# Copyright 2010-2013 Larry Hajali <larryhaja[at]gmail[dot]com> +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=wxMaxima -VERSION=${VERSION:-12.09.0} +VERSION=${VERSION:-13.04.2} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -51,9 +69,6 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -# Cleanup the desktop menu item. -sed -i -e "/^Icon/s|=.*|=$PRGNAM|" wxmaxima.desktop - CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ @@ -68,9 +83,14 @@ make install DESTDIR=$PKG find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true -mkdir -p $PKG/usr/share/{applications,pixmaps} -install -m 0644 wxmaxima.desktop $PKG/usr/share/applications/$PRGNAM.desktop -install -m 0644 data/wxmaxima.png $PKG/usr/share/pixmaps/$PRGNAM.png +# Cleanup the desktop menu item. +sed -i -e "/^Icon/s|=.*|=$PRGNAM|" wxmaxima.desktop +install -D -m 0644 wxmaxima.desktop $PKG/usr/share/applications/$PRGNAM.desktop +for i in 16 32 48 64 96 128; do + convert data/wxmaxima.png -resize ${i}x${i}! $PRGNAM-$i.png + install -D -m 0644 $PRGNAM-$i.png \ + $PKG/usr/share/icons/hicolor/${i}x${i}/apps/$PRGNAM.png +done mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a AUTHORS COPYING README art/*.txt $PKG/usr/doc/$PRGNAM-$VERSION diff --git a/academic/wxMaxima/wxMaxima.info b/academic/wxMaxima/wxMaxima.info index d44734448e..70eff42312 100644 --- a/academic/wxMaxima/wxMaxima.info +++ b/academic/wxMaxima/wxMaxima.info @@ -1,8 +1,8 @@ PRGNAM="wxMaxima" -VERSION="12.09.0" +VERSION="13.04.2" HOMEPAGE="http://wxmaxima.sourceforge.net/wiki/index.php/Main_Page" -DOWNLOAD="http://downloads.sourceforge.net/wxmaxima/wxMaxima-12.09.0.tar.gz" -MD5SUM="a5b0d82e99690b913dbc0109abe07e4e" +DOWNLOAD="http://downloads.sourceforge.net/wxmaxima/wxMaxima-13.04.2.tar.gz" +MD5SUM="52458cb8798a75d099623ed4259f997d" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="maxima wxPython" |