summaryrefslogtreecommitdiffstats
path: root/libraries
diff options
context:
space:
mode:
Diffstat (limited to 'libraries')
-rw-r--r--libraries/lapack-atlas/lapack-atlas.SlackBuild20
1 files changed, 11 insertions, 9 deletions
diff --git a/libraries/lapack-atlas/lapack-atlas.SlackBuild b/libraries/lapack-atlas/lapack-atlas.SlackBuild
index 2af5fb22dd..29a7be9b7a 100644
--- a/libraries/lapack-atlas/lapack-atlas.SlackBuild
+++ b/libraries/lapack-atlas/lapack-atlas.SlackBuild
@@ -24,11 +24,13 @@
# IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
-PRGNAM=lapack
+PRGNAM=lapack-atlas
VERSION=${VERSION:-3.6.1}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
+SRCNAM=lapack
+
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i586 ;;
@@ -39,7 +41,7 @@ fi
CWD="$(pwd)"
TMP="${TMP:-/tmp/SBo}"
-PKG="$TMP/package-${PRGNAM}-atlas"
+PKG="$TMP/package-${SRCNAM}-atlas"
OUTPUT="${OUTPUT:-/tmp}"
if [ -z "$ARCH" ]; then
@@ -51,17 +53,17 @@ if [ -z "$ARCH" ]; then
fi
set -e
-DEST_DIR="usr/share/lapack-atlas"
-DOC_DIR="usr/doc/lapack-atlas"
+DEST_DIR="usr/share/$PRGNAM"
+DOC_DIR="usr/doc/$PRGNAM-$VERSION"
rm -rf "$PKG"
mkdir -p "$TMP" "$PKG" "$OUTPUT"
cd "$TMP"
-rm -rf "$PRGNAM-$VERSION"
+rm -rf "$SRCNAM-$VERSION"
mkdir -p "${PKG}/${DEST_DIR}" "${PKG}/${DOC_DIR}"
install -m644 "$CWD/README" "$CWD/lapack-atlas.SlackBuild" "${PKG}/${DOC_DIR}"
-cp -ua "$CWD/${PRGNAM}-${VERSION}.tgz" "${PKG}/${DEST_DIR}"
+cat "$CWD/${SRCNAM}-${VERSION}.tgz" > "${PKG}/${DEST_DIR}/${SRCNAM}-${VERSION}.tgz"
cd "${PKG}/${DEST_DIR}"
-ln -s "${PRGNAM}-${VERSION}.tgz" lapack.tgz
+ln -s "${SRCNAM}-${VERSION}.tgz" lapack.tgz
cd "$PKG"
chown -R root:root .
find -L . \
@@ -72,4 +74,4 @@ find -L . \
mkdir -p "$PKG/install"
cat "$CWD/slack-desc" > "$PKG/install/slack-desc"
-/sbin/makepkg -l y -c n "$OUTPUT/$PRGNAM-atlas-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}"
+/sbin/makepkg -l y -c n "$OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}"