From 02e86abbb807f4aaa87e4ef55b4db5b4bae104b2 Mon Sep 17 00:00:00 2001 From: Petar Petrov Date: Tue, 18 May 2021 17:32:28 +0300 Subject: libraries/muParser: update for version2.3.2 Signed-off-by: Willy Sudiarto Raharjo --- libraries/muParser/muParser.SlackBuild | 44 +++++++++++++--------------------- libraries/muParser/muParser.info | 6 ++--- 2 files changed, 19 insertions(+), 31 deletions(-) diff --git a/libraries/muParser/muParser.SlackBuild b/libraries/muParser/muParser.SlackBuild index 998068dfd6..9a3fdcc76b 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 2297a41485..fe4c74fe12 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="" -- cgit v1.2.3