diff options
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 63daef3bb189d..74c823aaf3158 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 |