summaryrefslogtreecommitdiff
path: root/academic/mathomatic/mathomatic.SlackBuild
diff options
context:
space:
mode:
authorDylan Armitage <d.armitage89@gmail.com>2010-12-16 10:02:42 -0600
committerErik Hanson <erik@slackbuilds.org>2010-12-17 07:56:26 -0600
commit84dfd7f887d4404249e62aef1f2bd1ed35cc92b6 (patch)
tree6542b84221c9a0c09805d60f304a49cee47d9948 /academic/mathomatic/mathomatic.SlackBuild
parentd20c1a69d1c5ce1e3c36b31691fcba8fd119522c (diff)
downloadslackbuilds-84dfd7f887d4404249e62aef1f2bd1ed35cc92b6.tar.gz
academic/mathomatic: Updated for version 15.3.3.
Signed-off-by: Erik Hanson <erik@slackbuilds.org>
Diffstat (limited to 'academic/mathomatic/mathomatic.SlackBuild')
-rw-r--r--academic/mathomatic/mathomatic.SlackBuild29
1 files changed, 11 insertions, 18 deletions
diff --git a/academic/mathomatic/mathomatic.SlackBuild b/academic/mathomatic/mathomatic.SlackBuild
index 54e57bbead..5b7a0425b1 100644
--- a/academic/mathomatic/mathomatic.SlackBuild
+++ b/academic/mathomatic/mathomatic.SlackBuild
@@ -1,21 +1,19 @@
#!/bin/sh
-# Slackware build script for Mathomatic
+# Slackware build script for mathomatic
# Written by Dylan Armitage <d.armitage89@gmail.com>
# This work is released into the public domain.
PRGNAM=mathomatic
-VERSION=${VERSION:-15.0.8}
+VERSION=${VERSION:-15.3.3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@@ -55,27 +53,22 @@ find . \
-exec chmod 644 {} \;
CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
-make \
- prefix=/usr \
- mandir=/usr/man \
- docdir=/usr/doc/$PRGNAM-$VERSION \
- READLINE=1
+make READLINE=1
-make test # This is math. Testing is a very good idea.
+# We do want to make sure it works. This is math, afterall.
+make test
make install \
- prefix=$PKG/usr \
- mandir=$PKG/usr/man \
- docdir=$PKG/usr/doc/$PRGNAM-$VERSION
+prefix=/usr \
+mandir=/usr/man \
+docdir=/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
-( cd $PKG/usr/man
- find . -type f -exec gzip -9 {} \;
- for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
-)
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild