aboutsummaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2022-04-24 12:45:53 -0400
committerB. Watson <yalhcru@gmail.com>2022-04-24 12:45:53 -0400
commitdbfe1b818a5be9fa321a6983c1895c2cb46ebd9e (patch)
treed0111b510f2b5a6e2e11aee61816fb1187fe1bcd /libraries
parent3364fd9409da079acf6a1ea11aa175818430259d (diff)
libraries/libmrss: Strip library.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'libraries')
-rw-r--r--libraries/libmrss/libmrss.SlackBuild21
1 files changed, 11 insertions, 10 deletions
diff --git a/libraries/libmrss/libmrss.SlackBuild b/libraries/libmrss/libmrss.SlackBuild
index fadf0bb52b57..d3d3d19a3d3c 100644
--- a/libraries/libmrss/libmrss.SlackBuild
+++ b/libraries/libmrss/libmrss.SlackBuild
@@ -4,25 +4,26 @@
# Written by e20100633 <e20100633@inbox.lv>
+# 20220424 bkw: Modified by SlackBuilds.org, BUILD=3:
+# - strip shared library.
+# - i486 => i586.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=libmrss
VERSION=${VERSION:-0.19.2}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
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
@@ -32,8 +33,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"
@@ -57,9 +58,9 @@ cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
- -exec chmod 755 {} \; -o \
+ -exec chmod 755 {} \+ -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
+ -exec chmod 644 {} \+
# Fix a bug with a patch from debian
patch -p1 < $CWD/atom-link.diff
@@ -76,7 +77,7 @@ CXXFLAGS="$SLKCFLAGS" \
--build=$ARCH-slackware-linux
make
-make install DESTDIR=$PKG
+make install-strip DESTDIR=$PKG
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS COPYING ChangeLog NEWS README $PKG/usr/doc/$PRGNAM-$VERSION