academic/wxMaxima: Updated for version 15.08.2.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Larry Hajali 2015-12-30 17:45:46 +07:00 committed by Willy Sudiarto Raharjo
parent aa2a60c616
commit 4631847fad
3 changed files with 36 additions and 27 deletions

View file

@ -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

View file

@ -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

View file

@ -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"