diff options
author | Larry Hajali <larryhaja[at]gmail[dot]com> | 2015-12-30 17:45:46 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2015-12-30 17:46:28 +0700 |
commit | 4631847fad2288609c78e6c8be9fdb1fca8b3255 (patch) | |
tree | ea8d1131a3f1ddde3edfa68fd271c734a1e75e70 /academic/wxMaxima | |
parent | aa2a60c61602ebfaa629810fa45bff5ac91c975e (diff) |
academic/wxMaxima: Updated for version 15.08.2.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'academic/wxMaxima')
-rw-r--r-- | academic/wxMaxima/doinst.sh | 6 | ||||
-rw-r--r-- | academic/wxMaxima/wxMaxima.SlackBuild | 47 | ||||
-rw-r--r-- | academic/wxMaxima/wxMaxima.info | 10 |
3 files changed, 36 insertions, 27 deletions
diff --git a/academic/wxMaxima/doinst.sh b/academic/wxMaxima/doinst.sh index 3e5691a052b5..9a8ded3c6034 100644 --- a/academic/wxMaxima/doinst.sh +++ b/academic/wxMaxima/doinst.sh @@ -2,8 +2,6 @@ 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 +if [ -x /usr/bin/update-mime-database ]; then + /usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1 fi diff --git a/academic/wxMaxima/wxMaxima.SlackBuild b/academic/wxMaxima/wxMaxima.SlackBuild index 63daef3bb189..74c823aaf315 100644 --- a/academic/wxMaxima/wxMaxima.SlackBuild +++ b/academic/wxMaxima/wxMaxima.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for wxMaxima -# Copyright 2010-2013 Larry Hajali <larryhaja[at]gmail[dot]com> +# Copyright 2010-2015 Larry Hajali <larryhaja[at]gmail[dot]com> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,7 +23,8 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=wxMaxima -VERSION=${VERSION:-13.04.2} +SRCNAM=wxmaxima +VERSION=${VERSION:-15.08.2} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -59,38 +60,48 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz -cd $PRGNAM-$VERSION +rm -rf $SRCNAM-$VERSION +tar xvf $CWD/$SRCNAM-$VERSION.tar.gz +cd $SRCNAM-$VERSION chown -R root:root . find -L . \ - \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \ - -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \; + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + +# Fix man directory. +sed -i '/^mandatadir/s|=.*|= \$(mandir)|' data/Makefile* +#Fix end-of-line encoding. +for i in art/*.txt; do + sed -e 's/\r//' $i > ${i}.new + touch -r $i ${i}.new + mv ${i}.new $i +done CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ + --mandir=/usr/man \ + --infodir=/usr/info \ + --docdir=/usr/doc/$PRGNAM-$VERSION \ --disable-dependency-tracking \ + --disable-silent-rules \ --enable-printing \ --build=$ARCH-slackware-linux make +make allmo make install DESTDIR=$PKG -find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ +find $PKG -print0 | xargs -0 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 "/^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 +find $PKG/usr/man -type f -exec gzip -9 {} \; + +rm -f $PKG/usr/info/dir +gzip -9 $PKG/usr/info/*.info* 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 70eff42312da..07bd4eb95df8 100644 --- a/academic/wxMaxima/wxMaxima.info +++ b/academic/wxMaxima/wxMaxima.info @@ -1,10 +1,10 @@ PRGNAM="wxMaxima" -VERSION="13.04.2" -HOMEPAGE="http://wxmaxima.sourceforge.net/wiki/index.php/Main_Page" -DOWNLOAD="http://downloads.sourceforge.net/wxmaxima/wxMaxima-13.04.2.tar.gz" -MD5SUM="52458cb8798a75d099623ed4259f997d" +VERSION="15.08.2" +HOMEPAGE="http://andrejv.github.io/wxmaxima/" +DOWNLOAD="http://downloads.sourceforge.net/wxmaxima/wxmaxima-15.08.2.tar.gz" +MD5SUM="57f8ad6376bfc8ca92c69e613dcf0d99" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="maxima wxPython" +REQUIRES="maxima wxGTK3" MAINTAINER="Larry Hajali" EMAIL="larryhaja[at]gmail[dot]com" |