diff options
author | Fellype do Nascimento <fellype(at)gmail.com> | 2017-05-31 22:14:05 +0100 |
---|---|---|
committer | David Spencer <idlemoor@slackbuilds.org> | 2017-05-31 22:14:05 +0100 |
commit | 8f16d7cf3d35156ed2caf33f21fd9fa8edd6f2cf (patch) | |
tree | 6e4de1f1a412f450bdbfd1a9f6ceb948c456c03a /development/extra-cmake-modules/extra-cmake-modules.SlackBuild | |
parent | 4249bdcc0b92320c00e0b195853864c9edb942ba (diff) |
development/extra-cmake-modules: Updated for version 5.34.0.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'development/extra-cmake-modules/extra-cmake-modules.SlackBuild')
-rw-r--r-- | development/extra-cmake-modules/extra-cmake-modules.SlackBuild | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/development/extra-cmake-modules/extra-cmake-modules.SlackBuild b/development/extra-cmake-modules/extra-cmake-modules.SlackBuild index 2a0db1114a9fe..17a4788b6d20d 100644 --- a/development/extra-cmake-modules/extra-cmake-modules.SlackBuild +++ b/development/extra-cmake-modules/extra-cmake-modules.SlackBuild @@ -25,17 +25,16 @@ # Adapted by Fellype do Nascimento - fellype(at)gmail.com PRGNAM=extra-cmake-modules -VERSION=${VERSION:-5.31.0} +VERSION=${VERSION:-5.34.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then - case "$(uname -m)" in + case "$( uname -m )" in i?86) ARCH=i586 ;; - arm*) readelf /usr/bin/file -A | egrep -q "Tag_CPU.*[4,5]" && ARCH=arm || ARCH=armv7hl ;; - *) ARCH=$(uname -m) ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; esac - export ARCH fi CWD=$(pwd) @@ -43,24 +42,27 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} - if [ "$ARCH" = "i586" ]; then - SLKCFLAGS="-O2 -m32 -march=i586 -mtune=i686" -elif [ "$ARCH" = "s390" ]; then - SLKCFLAGS="-O2" + SLKCFLAGS="-O2 -march=i586 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" else SLKCFLAGS="-O2" + LIBDIRSUFFIX="" fi set -e rm -rf $PKG -mkdir -p $TMP $PKG +mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.xz* +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION chown -R root:root . find -L . \ @@ -76,9 +78,9 @@ cd build -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_INSTALL_PREFIX=/usr \ -DMAN_INSTALL_DIR=/usr/man \ - .. - make - make install DESTDIR=$PKG + -DCMAKE_BUILD_TYPE=Release .. + make + make install DESTDIR=$PKG cd - find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ |