diff options
Diffstat (limited to 'academic/mathomatic/mathomatic.SlackBuild')
-rw-r--r-- | academic/mathomatic/mathomatic.SlackBuild | 29 |
1 files changed, 11 insertions, 18 deletions
diff --git a/academic/mathomatic/mathomatic.SlackBuild b/academic/mathomatic/mathomatic.SlackBuild index 54e57bbead2ab..5b7a0425b11ca 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 |