summaryrefslogtreecommitdiffstats
path: root/academic/maxima/maxima.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'academic/maxima/maxima.SlackBuild')
-rw-r--r--academic/maxima/maxima.SlackBuild26
1 files changed, 20 insertions, 6 deletions
diff --git a/academic/maxima/maxima.SlackBuild b/academic/maxima/maxima.SlackBuild
index de32fcbf35..15ba5bebbe 100644
--- a/academic/maxima/maxima.SlackBuild
+++ b/academic/maxima/maxima.SlackBuild
@@ -1,7 +1,8 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for maxima
+# Copyright 2021-23 Judah Milgram <milgram@cgpp.com>
# Copyright 2017 Dhaby Xiloj <slack.dhabyx@gmail.com>
# All rights reserved.
# Based on work of Robby and others slackers.
@@ -30,11 +31,17 @@
# Modified by Ken Milmore 2009
# Modified by Glenn Becker to update to version 5.28.0
# Glenn Becker -> update to version 5.38.1
+# JM -> update version 5.39 -> 5.44
+# JM -> update to version 5.46
+# JM -> update to version 5.47
+
+cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=maxima
-VERSION=${VERSION:-5.39.0}
+VERSION=${VERSION:-5.47.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -44,7 +51,14 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
+# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
+# the name of the created package would be, and then exit. This information
+# could be useful to other scripts.
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -99,15 +113,15 @@ for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; r
# NOTE: Do not compress the info pages; they are needed by Maxima's help facility.
rm -rf $PKG/usr/info/dir
-# gzip -9 $PKG/usr/info/*.info*
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a AUTHORS COPYING ChangeLog* INSTALL* NEWS README* \
+cp -a AUTHORS COPYING ChangeLog* NEWS README* \
$PKG/usr/doc/$PRGNAM-$VERSION
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}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE