summaryrefslogtreecommitdiffstats
path: root/academic/amd
diff options
context:
space:
mode:
Diffstat (limited to 'academic/amd')
-rw-r--r--academic/amd/README9
-rw-r--r--academic/amd/amd.SlackBuild34
-rw-r--r--academic/amd/amd.info4
-rw-r--r--academic/amd/patches/autoconfiscate.diff2
4 files changed, 30 insertions, 19 deletions
diff --git a/academic/amd/README b/academic/amd/README
index 07e4dcafc0..b2ae697056 100644
--- a/academic/amd/README
+++ b/academic/amd/README
@@ -1,6 +1,7 @@
-AMD is a set of routines for ordering a sparse matrix prior to Cholesky
-factorization (or for LU factorization with diagonal pivoting). There are
-versions in both C and Fortran. Note that this software has nothing to do
-with AMD the company. This package runs on any platform.
+AMD is a set of routines for ordering a sparse matrix prior to
+Cholesky factorization (or for LU factorization with diagonal
+pivoting). There are versions in both C and Fortran. Note that this
+software has nothing to do with AMD the company. This package runs on
+any platform.
This package is part of SuiteSparse.
diff --git a/academic/amd/amd.SlackBuild b/academic/amd/amd.SlackBuild
index 905dcfb0ec..4cca1d563e 100644
--- a/academic/amd/amd.SlackBuild
+++ b/academic/amd/amd.SlackBuild
@@ -1,8 +1,8 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for AMD
-# 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=amd
SRCNAM=SuiteSparse
SUBDIR=AMD
VERSION=${VERSION:-2.4.6}
-SRCVER=${SRCVER:-5.4.0}
-BUILD=${BUILD:-5}
+SRCVER=${SRCVER:-5.8.1}
+BUILD=${BUILD:-7}
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 .
@@ -109,4 +119,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/amd/amd.info b/academic/amd/amd.info
index 0abec62bee..da6c16b92b 100644
--- a/academic/amd/amd.info
+++ b/academic/amd/amd.info
@@ -1,8 +1,8 @@
PRGNAM="amd"
VERSION="2.4.6"
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/amd/patches/autoconfiscate.diff b/academic/amd/patches/autoconfiscate.diff
index 1a954abc55..75b798c93e 100644
--- a/academic/amd/patches/autoconfiscate.diff
+++ b/academic/amd/patches/autoconfiscate.diff
@@ -176,7 +176,7 @@ new file mode 100644
+# Process this file with autoconf to produce a configure script.
+
+AC_PREREQ([2.69])
-+AC_INIT([AMD],[2.4.6],[DrTimothyAldenDavis@gmail.com],[amd],[http://www.suitesparse.com/])
++AC_INIT([AMD],[2.4.6],[https://github.com/DrTimothyAldenDavis/SuiteSparse],[amd],[http://www.suitesparse.com/])
+AC_CONFIG_SRCDIR([Source/amd_order.c])
+AC_CONFIG_AUX_DIR([build-aux])
+AC_CONFIG_MACRO_DIR([m4])