superlu/get-tarball.sh
Atri Bhattacharya ee75fe986b Accepting request 1102592 from home:mathletic:branches:science
- Update to version 6.0.1
  * Doxygen cleanup
  * Fix memory leak in ILU routines
  * Clean up some f2c-ed files
- Run regression tests with CTest
- Disable building examples
- Update patch superlu-remove-mc64ad.patch
- Drop patch superlu-examples_Makefile_remove_itersol.patch as
  we use CMake and no longer the provided Makefiles. And
  examples are no longer built.

OBS-URL: https://build.opensuse.org/request/show/1102592
OBS-URL: https://build.opensuse.org/package/show/science/superlu?expand=0&rev=43
2023-08-23 12:15:47 +00:00

30 lines
550 B
Bash

#!/bin/bash
set -e
VERSION=6.1.0
FILES="mc64ad.c sgsisx.c sldperm.c dgsisx.c dldperm.c cgsisx.c cldperm.c zgsisx.c zldperm.c"
URL="https://github.com/xiaoyeli/superlu/archive/v$VERSION/superlu-$VERSION.tar.gz"
TAR="superlu-$VERSION.tar.gz"
WORKDIR="$(mktemp -d superlu.XXXX)"
TODIR="$(pwd)"
cd "$WORKDIR"
wget $URL
tar xfz superlu-$VERSION.tar.gz
for file in $FILES; do
rm superlu-$VERSION/SRC/$file
done
if [ -e "$TODIR/$TAR" ]; then
echo "$TAR already exists."
else
tar cfz "$TODIR/$TAR" superlu-$VERSION
fi
cd "$TODIR"
rm -r "$WORKDIR"