aboutsummaryrefslogtreecommitdiff
path: root/system/intelmas/intelmas.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/intelmas/intelmas.SlackBuild')
-rw-r--r--system/intelmas/intelmas.SlackBuild14
1 files changed, 6 insertions, 8 deletions
diff --git a/system/intelmas/intelmas.SlackBuild b/system/intelmas/intelmas.SlackBuild
index 8fd9527a18ae1..6c24d37b85c13 100644
--- a/system/intelmas/intelmas.SlackBuild
+++ b/system/intelmas/intelmas.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for intelmas
-# Copyright 2020-2021, Alexander Verbovetsky, Moscow, Russia
+# Copyright 2020-2022, Alexander Verbovetsky, Moscow, Russia
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,7 +25,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=intelmas
-VERSION=${VERSION:-1.12}
+VERSION=${VERSION:-2.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -45,9 +45,6 @@ case "$ARCH" in
exit 1 ;;
esac
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -66,8 +63,8 @@ rm -rf $PRGNAM-$VERSION
mkdir -p $PRGNAM-$VERSION
cd $PRGNAM-$VERSION
-unzip "$CWD/Intel*MAS_CLI_Tool_*Linux*.zip"
-rpm2cpio intelmas-${VERSION}*.$RPMARCH.rpm | cpio -imdv
+unzip "$CWD/Intel*MAS_CLI_Tool_*Linux*${VERSION}.zip"
+rpm2cpio ${PRGNAM}-${VERSION}*.$RPMARCH.rpm | cpio -imdv
chown -R root:root .
find -L . \
@@ -79,12 +76,13 @@ find -L . \
# The library path is hard-coded, so we stick with /usr/lib
cp -a usr $PKG
mv $PKG/usr/bin $PKG/usr/sbin
+rm -rf $PKG/usr/lib/.build-id
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a *.pdf *.PDF $PKG/usr/doc/$PRGNAM-$VERSION 2>/dev/null || :
+cp -a *.pdf $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install