aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetar Petrov <slackalaxy@gmail.com>2021-05-18 17:32:28 +0300
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-05-18 23:40:21 +0700
commit02e86abbb807f4aaa87e4ef55b4db5b4bae104b2 (patch)
treee8918b1739d1633249345ed2438987bb039b5041
parentcdd96329fc7c022df20cbd98d8e318d40a1100c7 (diff)
libraries/muParser: update for version2.3.2
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--libraries/muParser/muParser.SlackBuild44
-rw-r--r--libraries/muParser/muParser.info6
2 files changed, 19 insertions, 31 deletions
diff --git a/libraries/muParser/muParser.SlackBuild b/libraries/muParser/muParser.SlackBuild
index 998068dfd60b..9a3fdcc76bdd 100644
--- a/libraries/muParser/muParser.SlackBuild
+++ b/libraries/muParser/muParser.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for muParser
-# Copyright 2011-2016 Petar Petrov slackalaxy@gmail.com
+# Copyright 2011-2021 Petar Petrov slackalaxy@gmail.com
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,16 +23,15 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=muParser
-VERSION=${VERSION:-2.2.5}
+VERSION=${VERSION:-2.3.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
SRCNAM=$(echo $PRGNAM | tr A-Z a-z)
-SRCVER=v2.2.5
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) export ARCH=i486 ;;
+ i?86) export ARCH=i586 ;;
arm*) export ARCH=arm ;;
*) export ARCH=$( uname -m ) ;;
esac
@@ -43,8 +42,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -63,13 +62,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $SRCNAM-$VERSION
-
-if [ -e $CWD/$SRCVER.tar.gz ]; then
- tar xvf $CWD/$SRCVER.tar.gz
-else
- tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
-fi
-
+tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
cd $SRCNAM-$VERSION
chown -R root:root .
find -L . \
@@ -78,21 +71,16 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-chmod +x configure
-
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
-./configure \
- --prefix=/usr \
- --libdir=/usr/lib${LIBDIRSUFFIX} \
- --sysconfdir=/etc \
- --localstatedir=/var \
- --mandir=/usr/man \
- --docdir=/usr/doc/$PRGNAM-$VERSION \
- --build=$ARCH-slackware-linux
-
-make -j1
-make install DESTDIR=$PKG
+mkdir -p build
+cd build
+ cmake \
+ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release ..
+ make
+ make install DESTDIR=$PKG
+cd ..
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
diff --git a/libraries/muParser/muParser.info b/libraries/muParser/muParser.info
index 2297a4148548..fe4c74fe126c 100644
--- a/libraries/muParser/muParser.info
+++ b/libraries/muParser/muParser.info
@@ -1,8 +1,8 @@
PRGNAM="muParser"
-VERSION="2.2.5"
+VERSION="2.3.2"
HOMEPAGE="http://beltoforion.de/article.php?a=muparser"
-DOWNLOAD="https://github.com/beltoforion/muparser/archive/v2.2.5.tar.gz"
-MD5SUM="02dae671aa5ad955fdcbcd3fee313fb7"
+DOWNLOAD="https://github.com/beltoforion/muparser/archive/v2.3.2/muparser-2.3.2.tar.gz"
+MD5SUM="cbc1b284e03abc7081b3c30997959893"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""