aboutsummaryrefslogtreecommitdiff
path: root/academic/wxMaxima/wxMaxima.SlackBuild
diff options
context:
space:
mode:
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 859f820fe0e1b..c7a12b6bfddbf 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