summaryrefslogtreecommitdiff
path: root/academic/reduce-algebra/reduce-algebra.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'academic/reduce-algebra/reduce-algebra.SlackBuild')
-rw-r--r--academic/reduce-algebra/reduce-algebra.SlackBuild8
1 files changed, 5 insertions, 3 deletions
diff --git a/academic/reduce-algebra/reduce-algebra.SlackBuild b/academic/reduce-algebra/reduce-algebra.SlackBuild
index e8d448770c..27ba6c5e23 100644
--- a/academic/reduce-algebra/reduce-algebra.SlackBuild
+++ b/academic/reduce-algebra/reduce-algebra.SlackBuild
@@ -27,6 +27,8 @@ VERSION=${VERSION:-20161220svn3844}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+SRCNAM=Reduce-${VERSION:8}-src
+
SLACKVER=${SLACKVER:-$(cat /etc/slackware-version | tr --delete '[[:space:]]' | tr '[:upper:]' '[:lower:]')}
if [ -z "$ARCH" ]; then
@@ -61,9 +63,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
-cd $PRGNAM-$VERSION
+rm -rf $SRCNAM
+tar xvf $CWD/$SRCNAM.tar.gz
+cd $SRCNAM
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \