From 9edac5e33760d60c0780a84e0dc54e5b5033e280 Mon Sep 17 00:00:00 2001 From: Matthew Fillpot Date: Fri, 19 Aug 2011 08:58:16 -0300 Subject: academic/mathomatic: Updated for version 15.6.3 (+new maintainer) Signed-off-by: Niels Horn --- academic/mathomatic/mathomatic.SlackBuild | 36 ++++++++++++++++++++++++------- 1 file changed, 28 insertions(+), 8 deletions(-) (limited to 'academic/mathomatic/mathomatic.SlackBuild') diff --git a/academic/mathomatic/mathomatic.SlackBuild b/academic/mathomatic/mathomatic.SlackBuild index 5b7a0425b1..2573c6a9f5 100644 --- a/academic/mathomatic/mathomatic.SlackBuild +++ b/academic/mathomatic/mathomatic.SlackBuild @@ -2,11 +2,30 @@ # Slackware build script for mathomatic -# Written by Dylan Armitage -# This work is released into the public domain. +# Copyright 2011 Matthew "mfillpot" Fillpot +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# Originally written by Dylan Armitage PRGNAM=mathomatic -VERSION=${VERSION:-15.3.3} +VERSION=${VERSION:-15.6.3} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -53,16 +72,16 @@ find . \ -exec chmod 644 {} \; CFLAGS="$SLKCFLAGS" \ -make READLINE=1 + make READLINE=1 # We do want to make sure it works. This is math, afterall. make test make install \ -prefix=/usr \ -mandir=/usr/man \ -docdir=/usr/doc/$PRGNAM-$VERSION \ -DESTDIR=$PKG + prefix=/usr \ + mandir=/usr/man \ + mathdocdir=/usr/doc/$PRGNAM-$VERSION \ + 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 @@ -74,6 +93,7 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} -- cgit v1.2.3