aboutsummaryrefslogtreecommitdiff
path: root/libraries/lapack-atlas
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2020-01-03 02:28:00 -0500
committerRobby Workman <rworkman@slackbuilds.org>2020-01-03 02:10:57 -0600
commitd73d5f8f87d3d584fd78c2508f3dcb7862add64d (patch)
tree467446b6917945dc1aa433d345b40db966dc5be0 /libraries/lapack-atlas
parentcdb4181c9b38220c84b5467432a20ccb9c5f6b29 (diff)
libraries/lapack-atlas: Fixed PRGNAM, do not cp -a from CWD.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'libraries/lapack-atlas')
-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 2af5fb22dd03..29a7be9b7a7c 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}"