aboutsummaryrefslogtreecommitdiff
path: root/libraries/muParser/muParser.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/muParser/muParser.SlackBuild')
-rw-r--r--libraries/muParser/muParser.SlackBuild16
1 files changed, 11 insertions, 5 deletions
diff --git a/libraries/muParser/muParser.SlackBuild b/libraries/muParser/muParser.SlackBuild
index dddfaa5a1083f..6234bcf7ea5ed 100644
--- a/libraries/muParser/muParser.SlackBuild
+++ b/libraries/muParser/muParser.SlackBuild
@@ -23,12 +23,12 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=muParser
-VERSION=${VERSION:-2.2.4}
+VERSION=${VERSION:-2.2.5}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
SRCNAM=$(echo $PRGNAM | tr A-Z a-z)
-SRCVER=v2_2_4
+SRCVER=v2.2.5
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -62,9 +62,15 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf ${SRCNAM}_$SRCVER
-unzip $CWD/${SRCNAM}_$SRCVER.zip
-cd ${SRCNAM}_$SRCVER
+rm -rf $SRCNAM-$SRCVER
+
+if [ -e $CWD/$SRCVER.tar.gz ]; then
+ tar xvf $CWD/$SRCVER.tar.gz
+else
+ tar xvf $CWD/$SRCNAM-$SRCVER.tar.gz
+fi
+
+cd $SRCNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \