aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcduston44 <christopher.duston@protonmail.com>2023-07-17 07:13:51 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-08-05 10:08:48 +0700
commit7decf95f2876eedb96cfecbdd2845688083da073 (patch)
treee0eb4bddc72611d079b18ecb918e26954297f985
parent8278c053d651f4eb7efc76dfd08ac2b8befc7af5 (diff)
academic/sage: Updated for version 10.0.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--academic/sage/sage.SlackBuild23
-rw-r--r--academic/sage/sage.info6
2 files changed, 16 insertions, 13 deletions
diff --git a/academic/sage/sage.SlackBuild b/academic/sage/sage.SlackBuild
index 55235ef6e075..b56f82950a91 100644
--- a/academic/sage/sage.SlackBuild
+++ b/academic/sage/sage.SlackBuild
@@ -3,7 +3,7 @@
# Slackware build script for sage
# Written by Jack Maddox <jack@auburn.edu>
# Currently maintained by Christopher L Duston <christopher.duston@protonmail.com>
-# Last update Jan 2022.
+# Last update June 2023.
#
# All rights reserved.
#
@@ -27,7 +27,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=sage
-VERSION=${VERSION:-9.4}
+VERSION=${VERSION:-10.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -41,12 +41,12 @@ if [ -z "$ARCH" ]; then
fi
#### These lines are to ensure the build can happen on multilib systems.
-if [ "$ARCH" = "i586" ]; then
-LIBDIRSUFFIX=""
+if [ "$ARCH" = "i586" ] || [ "$ARCH" = "i686" ]; then
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
-LIBDIRSUFFIX="64"
+ LIBDIRSUFFIX="64"
else
-LIBDIRSUFFIX=""
+ LIBDIRSUFFIX=""
fi
####
@@ -79,9 +79,9 @@ cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
- -o -perm 511 \) -exec chmod 755 {} \; -o \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
mkdir -p $PKG/$SAGEROOT $PKG/usr/share/{applications,pixmaps} \
$PKG/usr/doc/$PRGNAM-$VERSION $PKG/etc/profile.d
@@ -132,12 +132,15 @@ if [ "${INSTALLSCRIPTS:-no}" = "yes" ]; then
fi
sed "s%SAGEROOT%${SAGEROOT}%" $CWD/$PRGNAM-notebook.desktop > $PKG/usr/share/applications/$PRGNAM-notebook.desktop
-cp src/doc/common/themes/sage/static/sageicon.png $PKG/usr/share/pixmaps/
+#cp src/doc/common/themes/sage/static/sageicon.png $PKG/usr/share/pixmaps/
# Put a line here which *actually* adds sage to the path
+# Gotta source that .sh script, that works fine (see README)
+
# install sagetex to a location that is accessible to the system TeX installation
-cp -a local/share/texmf $PKG/usr/share
+cp -a local/var/lib/sage/venv-python3.9/share/texmf $PKG/usr/share
+
cp -a COPYING.txt README.md $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
diff --git a/academic/sage/sage.info b/academic/sage/sage.info
index 364237c41adf..157577dcada1 100644
--- a/academic/sage/sage.info
+++ b/academic/sage/sage.info
@@ -1,8 +1,8 @@
PRGNAM="sage"
-VERSION="9.4"
+VERSION="10.0"
HOMEPAGE="http://www.sagemath.org"
-DOWNLOAD="http://mirrors.mit.edu/sage/src/sage-9.4.tar.gz"
-MD5SUM="66d4e2cc18095df56f99f5420d70a33b"
+DOWNLOAD="http://mirrors.mit.edu/sage/src/sage-10.0.tar.gz"
+MD5SUM="14478a007c5e94d0402ac6924b0dae5a"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""