diff options
author | Vijay Marcel <vijaymarcel@outlook.com> | 2023-05-17 22:39:13 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-05-20 11:17:05 +0700 |
commit | a8886279949501165fe948ed5b756992b277795f (patch) | |
tree | 9c416d3750a2b020f73398d9c0949d4982c15204 /libraries/libmysofa/libmysofa.SlackBuild | |
parent | d0864e43d8c44c77b6cf22c54be473f4150f9728 (diff) |
libraries/libmysofa: Updated for version 1.3.1.
Signed-off-by: bedlam <dave@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/libmysofa/libmysofa.SlackBuild')
-rw-r--r-- | libraries/libmysofa/libmysofa.SlackBuild | 36 |
1 files changed, 15 insertions, 21 deletions
diff --git a/libraries/libmysofa/libmysofa.SlackBuild b/libraries/libmysofa/libmysofa.SlackBuild index 2528e4c255e27..4f01993368e34 100644 --- a/libraries/libmysofa/libmysofa.SlackBuild +++ b/libraries/libmysofa/libmysofa.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for libmysofa -# Copyright 2022, Vijay Marcel, India +# Copyright 2022-2023 Vijay Marcel,India # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -25,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=libmysofa -VERSION=${VERSION:-1.2.1} +VERSION=${VERSION:-1.3.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -43,16 +43,12 @@ PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i586" ]; then - 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" LIBDIRSUFFIX="64" else - SLKCFLAGS="-O2" LIBDIRSUFFIX="" fi @@ -81,20 +77,18 @@ find -L . \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -CFLAGS="$SLKCFLAGS" \ -CXXFLAGS="$SLKCFLAGS" \ - -cmake -B build -S $TMP/$PRGNAM-$VERSION \ - -DCMAKE_C_FLAGS=$SLKCFLAGS \ - -DCMAKE_CXX_FLAGS=$SLKCFLAGS \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DCMAKE_INSTALL_BINDIR=/usr/bin \ - -DCMAKE_INSTALL_DOCDIR=/usr/doc \ - -DCMAKE_INSTALL_INCLUDEDIR=/usr/include \ - -DCMAKE_INSTALL_LIBDIR=/usr/lib64 \ - -DBUILD_SHARED_LIBS=ON \ - -DBUILD_STATIC_LIBS=OFF \ - -DBUILD_TESTS=ON +cmake -B $TMP/$PRGNAM-$VERSION/build -S $TMP/$PRGNAM-$VERSION \ + -DCMAKE_BUILD_TYPE:STRING=Release \ + -DCMAKE_INSTALL_PREFIX:PATH=/usr \ + -DCMAKE_INSTALL_BINDIR:PATH=/usr/bin \ + -DCMAKE_INSTALL_DOCDIR:PATH=/usr/doc \ + -DCMAKE_INSTALL_INCLUDEDIR:PATH=/usr/include \ + -DCMAKE_INSTALL_LIBDIR:PATH=/usr/lib${LIBDIRSUFFIX} \ + -DBUILD_SHARED_LIBS:BOOL=ON \ + -DBUILD_STATIC_LIBS:BOOL=OFF \ + -DBUILD_TESTS:BOOL=OFF \ + -DCODE_COVERAGE:BOOL=OFF \ + -DADDRESS_SANITIZE:BOOL=OFF make -C build @@ -107,7 +101,7 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" \ rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a LICENSE README.md $PKG/usr/doc/$PRGNAM-$VERSION +cp -a LICENSE README.md CODE_OF_CONDUCT.md SECURITY.md $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |