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/wxMaxima/wxMaxima.SlackBuild | |
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/wxMaxima/wxMaxima.SlackBuild')
-rw-r--r-- | academic/wxMaxima/wxMaxima.SlackBuild | 36 |
1 files changed, 28 insertions, 8 deletions
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 |