summaryrefslogtreecommitdiffstats
path: root/academic/mathomatic/mathomatic.SlackBuild
diff options
context:
space:
mode:
author Matthew Fillpot <mfilpot@gmail.com>2011-08-19 08:58:16 -0300
committer Niels Horn <niels.horn@slackbuilds.org>2011-08-19 08:58:16 -0300
commit9edac5e33760d60c0780a84e0dc54e5b5033e280 (patch)
treead9a5fc6566c5f7f218b77770c40234d660e2553 /academic/mathomatic/mathomatic.SlackBuild
parent115c22990441559d34df90b05d65e344d797f8ce (diff)
downloadslackbuilds-9edac5e33760d60c0780a84e0dc54e5b5033e280.tar.gz
slackbuilds-9edac5e33760d60c0780a84e0dc54e5b5033e280.tar.xz
academic/mathomatic: Updated for version 15.6.3 (+new maintainer)
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'academic/mathomatic/mathomatic.SlackBuild')
-rw-r--r--academic/mathomatic/mathomatic.SlackBuild36
1 files changed, 28 insertions, 8 deletions
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 <d.armitage89@gmail.com>
-# 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 <d.armitage89@gmail.com>
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}