From 666122bd8bede0be423ba8201580aede08b79c7c Mon Sep 17 00:00:00 2001 From: larryhaja Date: Wed, 13 Nov 2013 18:25:39 -0800 Subject: academic/wxMaxima: Upgraded to 13.04.2 Signed-off-by: Robby Workman --- academic/wxMaxima/wxMaxima.SlackBuild | 36 +++++++++++++++++++++++++++-------- 1 file changed, 28 insertions(+), 8 deletions(-) (limited to 'academic/wxMaxima/wxMaxima.SlackBuild') 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 +# Copyright 2010-2013 Larry Hajali +# 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 -- cgit v1.2.3