diff options
author | Vijay Marcel <vijaymarcel@outlook.com> | 2024-02-22 21:35:19 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2024-02-23 16:24:04 +0700 |
commit | 4d49768bfabea3df1baf80baac2f0e91d5a7e5f5 (patch) | |
tree | 30e1c5b5e2729e46c7008141481ef073b87aa65e /libraries | |
parent | 74bf187211368382384cc4707fe4bf4f7e6b6cb5 (diff) |
libraries/libmysofa: Updated for version 1.3.2.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries')
-rw-r--r-- | libraries/libmysofa/changelog | 4 | ||||
-rw-r--r-- | libraries/libmysofa/libmysofa.SlackBuild | 22 | ||||
-rw-r--r-- | libraries/libmysofa/libmysofa.info | 6 |
3 files changed, 21 insertions, 11 deletions
diff --git a/libraries/libmysofa/changelog b/libraries/libmysofa/changelog index 9cc81ef8a576..447400a23489 100644 --- a/libraries/libmysofa/changelog +++ b/libraries/libmysofa/changelog @@ -14,3 +14,7 @@ libmysofa slackbuild script fixed by B.Watson Updated to version 1.3.1. It does not recognize the extra CFLAGS probably due to hardcoded in the cmakelists file.so I have removed them in the script. + +19/02/2024: + +updated to version 1.3.2 diff --git a/libraries/libmysofa/libmysofa.SlackBuild b/libraries/libmysofa/libmysofa.SlackBuild index 4f01993368e3..6e88b4f7d10d 100644 --- a/libraries/libmysofa/libmysofa.SlackBuild +++ b/libraries/libmysofa/libmysofa.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for libmysofa -# Copyright 2022-2023 Vijay Marcel,India +# Copyright 2022-2024 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.3.1} +VERSION=${VERSION:-1.3.2} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -43,18 +43,18 @@ PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-march=i586 -mtune=i686 -pipe -O2 -fPIC" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-march=i686 -mtune=i686 -pipe -O2 -fPIC" LIBDIRSUFFIX="" elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-march=x86-64 -mtune=generic -pipe -O2 -fPIC" LIBDIRSUFFIX="64" else LIBDIRSUFFIX="" fi -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" exit 0 @@ -78,6 +78,8 @@ find -L . \ cmake -B $TMP/$PRGNAM-$VERSION/build -S $TMP/$PRGNAM-$VERSION \ + -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_BUILD_TYPE:STRING=Release \ -DCMAKE_INSTALL_PREFIX:PATH=/usr \ -DCMAKE_INSTALL_BINDIR:PATH=/usr/bin \ @@ -94,17 +96,21 @@ cmake -B $TMP/$PRGNAM-$VERSION/build -S $TMP/$PRGNAM-$VERSION \ make -C build make -C build install DESTDIR=$PKG +mkdir -pv $PKG/usr/include/$PRGNAM +install -D -v -m0644 $TMP/$PRGNAM-$VERSION/build/src/config.h -t "$PKG/usr/include/$PRGNAM" +install -D -v -m0644 $TMP/$PRGNAM-$VERSION/build/src/mysofa_export.h -t "$PKG/usr/include/$PRGNAM" + 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 + | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded --remove-section=.comment --remove-section=.note 2> /dev/null || true # Don't ship .la files: rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +mkdir -pv $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 +mkdir -pv $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG diff --git a/libraries/libmysofa/libmysofa.info b/libraries/libmysofa/libmysofa.info index 7431bdf08eb3..667656018d99 100644 --- a/libraries/libmysofa/libmysofa.info +++ b/libraries/libmysofa/libmysofa.info @@ -1,8 +1,8 @@ PRGNAM="libmysofa" -VERSION="1.3.1" +VERSION="1.3.2" HOMEPAGE="https://github.com/hoene/libmysofa" -DOWNLOAD="https://github.com/hoene/libmysofa/archive/v1.3.1/libmysofa-1.3.1.tar.gz" -MD5SUM="3d00fdb7014819ed300c5b23dae2c58c" +DOWNLOAD="https://github.com/hoene/libmysofa/archive/v1.3.2/libmysofa-1.3.2.tar.gz" +MD5SUM="483878b0ed4dc177a64bdec3c3fe6f1e" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="cunit" |