summaryrefslogtreecommitdiff
path: root/academic/wxMaxima/wxMaxima.SlackBuild
diff options
context:
space:
mode:
authorLarry Hajali <larryhaja[at]gmail[dot]com>2012-12-19 20:38:26 +0100
committerMatteo Bernardini <ponce@slackbuilds.org>2012-12-19 20:38:48 +0100
commitc70a74311f284f9cf03a63dc7365d1fd568cb8fd (patch)
tree40bb5b57b0072919c449bdff22c457bda407ffad /academic/wxMaxima/wxMaxima.SlackBuild
parentdde396c5d0a75ed7f0f62eeae16bc14c327d9672 (diff)
downloadslackbuilds-c70a74311f284f9cf03a63dc7365d1fd568cb8fd.tar.gz
academic/wxMaxima: Updated for version 12.09.0, cleanups.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'academic/wxMaxima/wxMaxima.SlackBuild')
-rw-r--r--academic/wxMaxima/wxMaxima.SlackBuild14
1 files changed, 5 insertions, 9 deletions
diff --git a/academic/wxMaxima/wxMaxima.SlackBuild b/academic/wxMaxima/wxMaxima.SlackBuild
index 859f820fe0..c7a12b6bfd 100644
--- a/academic/wxMaxima/wxMaxima.SlackBuild
+++ b/academic/wxMaxima/wxMaxima.SlackBuild
@@ -5,7 +5,7 @@
# Written by Larry Hajali <larryhaja[at]gmail[dot]com>
PRGNAM=wxMaxima
-VERSION=11.04.0
+VERSION=${VERSION:-12.09.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -51,6 +51,9 @@ 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 \
@@ -65,19 +68,12 @@ 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
-# Cleanup the desktop menu item.
-sed -i \
- -e "/^Categories/s|=.*|=Education;Science;Math;|" \
- -e "/^Icon/s|=.*|=$PRGNAM|" wxmaxima.desktop
-
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
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a \
- AUTHORS COPYING README art/*.txt \
- $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS COPYING README art/*.txt $PKG/usr/doc/$PRGNAM-$VERSION
rm -f $PKG/usr/share/$PRGNAM/{COPYING,README}
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild