summaryrefslogtreecommitdiffstats
path: root/academic/cxsparse
diff options
context:
space:
mode:
Diffstat (limited to 'academic/cxsparse')
-rw-r--r--academic/cxsparse/cxsparse.SlackBuild34
-rw-r--r--academic/cxsparse/cxsparse.info4
-rw-r--r--academic/cxsparse/patches/autoconfiscate.diff2
3 files changed, 25 insertions, 15 deletions
diff --git a/academic/cxsparse/cxsparse.SlackBuild b/academic/cxsparse/cxsparse.SlackBuild
index c885e92f68..4d8c288e24 100644
--- a/academic/cxsparse/cxsparse.SlackBuild
+++ b/academic/cxsparse/cxsparse.SlackBuild
@@ -1,8 +1,8 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for CXSparse
-# Copyright 2013-2019 Kyle Guinn <elyk03@gmail.com>
+# Copyright 2013-2021 Kyle Guinn <elyk03@gmail.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,13 +22,16 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=cxsparse
SRCNAM=SuiteSparse
SUBDIR=CXSparse
VERSION=${VERSION:-3.2.0}
-SRCVER=${SRCVER:-5.4.0}
-BUILD=${BUILD:-3}
+SRCVER=${SRCVER:-5.8.1}
+BUILD=${BUILD:-5}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$(uname -m)" in
@@ -38,15 +41,22 @@ 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-$VERSION
+PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
DOCS="README.txt Doc/ChangeLog Doc/License.txt Doc/lesser.txt"
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
@@ -70,9 +80,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $SRCNAM
-tar xvf $CWD/$SRCNAM-$SRCVER.tar.gz $SRCNAM/$SUBDIR
-cd $SRCNAM/$SUBDIR
+rm -rf $SRCNAM-$SRCVER
+tar xvf $CWD/$SRCNAM-$SRCVER.tar.gz $SRCNAM-$SRCVER/$SUBDIR
+cd $SRCNAM-$SRCVER/$SUBDIR
chown -R root:root .
chmod -R u+w,go-w,a+rX-st .
@@ -105,4 +115,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
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
diff --git a/academic/cxsparse/cxsparse.info b/academic/cxsparse/cxsparse.info
index 3eded7da7c..06c815be7c 100644
--- a/academic/cxsparse/cxsparse.info
+++ b/academic/cxsparse/cxsparse.info
@@ -1,8 +1,8 @@
PRGNAM="cxsparse"
VERSION="3.2.0"
HOMEPAGE="http://faculty.cse.tamu.edu/davis/suitesparse.html"
-DOWNLOAD="http://faculty.cse.tamu.edu/davis/SuiteSparse/SuiteSparse-5.4.0.tar.gz"
-MD5SUM="4a6d4e74fc44c503f52996ae95cad03a"
+DOWNLOAD="https://github.com/DrTimothyAldenDavis/SuiteSparse/archive/v5.8.1/SuiteSparse-5.8.1.tar.gz"
+MD5SUM="c414679bbc9432a3def01b31ad921140"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="suitesparseconfig"
diff --git a/academic/cxsparse/patches/autoconfiscate.diff b/academic/cxsparse/patches/autoconfiscate.diff
index 6302da44f3..6ee6d78b45 100644
--- a/academic/cxsparse/patches/autoconfiscate.diff
+++ b/academic/cxsparse/patches/autoconfiscate.diff
@@ -522,7 +522,7 @@ new file mode 100644
+# Process this file with autoconf to produce a configure script.
+
+AC_PREREQ([2.69])
-+AC_INIT([CXSparse],[3.2.0],[DrTimothyAldenDavis@gmail.com],[cxsparse],[http://www.suitesparse.com/])
++AC_INIT([CXSparse],[3.2.0],[https://github.com/DrTimothyAldenDavis/SuiteSparse],[cxsparse],[http://www.suitesparse.com/])
+AC_CONFIG_SRCDIR([Source/cs_print.c])
+AC_CONFIG_AUX_DIR([build-aux])
+AC_CONFIG_MACRO_DIR([m4])