Skip to content

Commit

Permalink
lapack: upgraded to 3.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
conraid committed Jun 25, 2016
1 parent 7fb1cb8 commit 6f0ef4e
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 24 deletions.
2 changes: 1 addition & 1 deletion lapack/README
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

Slackware Current Repository by Conraid
Slackware Current Repository by Conraid

======================================================================

Expand Down
35 changes: 17 additions & 18 deletions lapack/lapack.SlackBuild
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# Slackware build script for lapack
#
# Copyright 2014-2015 Corrado Franco (http://conraid.net)
# Copyright 2014-2016 Corrado Franco (http://conraid.net)
# All rights reserved.
#
# This program is free software: you can redistribute it and/or modify
Expand All @@ -29,21 +29,21 @@ set -eu

CWD=$(pwd)

PRGNAM=lapack
VERSION=${VERSION:-3.6.0}
BUILD=${BUILD:-2}
PKGNAM=lapack
VERSION=3.6.1
BUILD=${BUILD:-1}
TAG=${TAG:-cf}
TMP=${TMP:-/tmp/pkg}
PKG=$TMP/package-$PRGNAM
PKG=$TMP/package-$PKGNAM
OUTPUT=${OUTPUT:-/tmp}

DOCFILES="LICENSE README"

if [ -z ${ARCH:=""} ]; then
case "$( uname -m )" in
i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
fi

Expand All @@ -64,16 +64,15 @@ fi
rm -rf $PKG
mkdir -p $TMP $PKG
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tgz
cd $PRGNAM-$VERSION
rm -rf $PKGNAM-$VERSION
tar xvf $CWD/$PKGNAM-$VERSION.tgz
cd $PKGNAM-$VERSION

chown -R root:root .
find . -executable -exec chmod 755 {} \+
find . ! -executable -exec chmod 644 {} \+
chmod -R u+w,go+r-w,a+X-s .

# Fix lib in cmake lapacke
sed -e "s|lib/|lib$LIBDIRSUFFIX/|g" \
sed -e "s|lib/|lib${LIBDIRSUFFIX}/|g" \
-i LAPACKE/CMakeLists.txt \
-i LAPACKE/cmake/lapacke-config-install.cmake.in

Expand All @@ -97,12 +96,12 @@ cd ..
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF | cut -f 1 -d : | xargs -r strip --strip-unneeded 2> /dev/null || true
find $PKG | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs -r strip -g 2> /dev/null || true

mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a $DOCFILES $PKG/usr/doc/$PRGNAM-$VERSION
install -Dm644 $CWD/$PRGNAM.SlackBuild $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION
cp -a $DOCFILES $PKG/usr/doc/$PKGNAM-$VERSION
install -Dm644 $CWD/$PKGNAM.SlackBuild $PKG/usr/doc/$PKGNAM-$VERSION/$PKGNAM.SlackBuild

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:-txz}
/sbin/makepkg -l y -c n $OUTPUT/$PKGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-txz}
10 changes: 5 additions & 5 deletions lapack/lapack.info
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
PRGNAM="lapack"
VERSION="3.6.0"
VERSION="3.6.1"
HOMEPAGE="http://www.netlib.org/lapack"
DOWNLOAD="http://www.netlib.org/lapack/lapack-3.6.0.tgz"
FILENAME="lapack-3.6.0.tgz"
DOWNLOAD="http://www.netlib.org/lapack/lapack-3.6.1.tgz"
FILENAME="lapack-3.6.1.tgz"
REQUIRES=""
MD5SUM="f2f6c67134e851fe189bb3ca1fbb5101"
SHASUM="7e993de16d80d52b22b6093465eeb90c93c7a2e7"
MD5SUM="421b2cb72e15f237e144428f9c460ee0"
SHASUM="7220a9bc9c766cb513007f313b804d88f110c228"
MAINTAINER="Corrado Franco"
EMAIL="conraid (at) linux (dot) it"

0 comments on commit 6f0ef4e

Please sign in to comment.