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/wxMaxima.SlackBuild | |
parent | aa2a60c61602ebfaa629810fa45bff5ac91c975e (diff) | |
download | slackbuilds-4631847fad2288609c78e6c8be9fdb1fca8b3255.tar.gz |
academic/wxMaxima: Updated for version 15.08.2.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'academic/wxMaxima/wxMaxima.SlackBuild')
-rw-r--r-- | academic/wxMaxima/wxMaxima.SlackBuild | 47 |
1 files changed, 29 insertions, 18 deletions
diff --git a/academic/wxMaxima/wxMaxima.SlackBuild b/academic/wxMaxima/wxMaxima.SlackBuild index 63daef3bb1..74c823aaf3 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 |