mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
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>
This commit is contained in:
parent
cdb4181c9b
commit
d73d5f8f87
1 changed files with 11 additions and 9 deletions
|
@ -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}"
|
||||
|
|
Loading…
Reference in a new issue