aboutsummaryrefslogtreecommitdiff
path: root/libraries/librist/librist.SlackBuild
diff options
context:
space:
mode:
authorVijay Marcel <vijaymarcel@outlook.com>2024-02-22 21:35:13 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2024-02-23 16:23:42 +0700
commit74bf187211368382384cc4707fe4bf4f7e6b6cb5 (patch)
treef362ea9884ed768b215f117584ce0a2ab2c4df80 /libraries/librist/librist.SlackBuild
parent11cd376ef0f687f628727f47170ca0e6d4b9063c (diff)
libraries/librist: Updated for version 0.2.10.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/librist/librist.SlackBuild')
-rw-r--r--libraries/librist/librist.SlackBuild15
1 files changed, 6 insertions, 9 deletions
diff --git a/libraries/librist/librist.SlackBuild b/libraries/librist/librist.SlackBuild
index 3d5d6cdac2d7d..22b723ef00f3c 100644
--- a/libraries/librist/librist.SlackBuild
+++ b/libraries/librist/librist.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for librist
-# Copyright 2022 Vijay Marcel
+# Copyright 2022-2024 Vijay Marcel
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -26,7 +26,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=librist
-VERSION=${VERSION:-0.2.7}
+VERSION=${VERSION:-0.2.10}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -44,13 +44,13 @@ PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i586" ]; then
- SLKCFLAGS="-O2 -march=i586 -mtune=i686"
+ SLKCFLAGS="-march=i586 -mtune=i686 -pipe -O2 -fPIC"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
- SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ SLKCFLAGS="-march=i686 -mtune=i686 -pipe -O2 -fPIC"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
- SLKCFLAGS="-O2 -fPIC"
+ SLKCFLAGS="-march=x86-64 -mtune=generic -pipe -O2 -fPIC"
LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
@@ -58,9 +58,6 @@ else
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
@@ -98,7 +95,7 @@ DESTDIR=$PKG ninja install
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
+ | 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: