aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornewHeiko <35038740+newHeiko@users.noreply.github.com>2022-02-11 21:02:37 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-02-12 08:20:48 +0700
commit9a503feeca9019f84481ff1a3af5231effb307c6 (patch)
tree4b08a4d2c5e5f79367e46344004cb7567187eafe
parent72cbb25fd4027d96ed247c760bcb93f6f52db864 (diff)
libraries/libxdg-basedir: Do not install .la files
Thanks to Franzen slackbuilds@schoepfer.info. Also incremented the build version. Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--libraries/libxdg-basedir/libxdg-basedir.SlackBuild11
1 files changed, 7 insertions, 4 deletions
diff --git a/libraries/libxdg-basedir/libxdg-basedir.SlackBuild b/libraries/libxdg-basedir/libxdg-basedir.SlackBuild
index 8d22bc78ff14c..d6bdf8ba6697f 100644
--- a/libraries/libxdg-basedir/libxdg-basedir.SlackBuild
+++ b/libraries/libxdg-basedir/libxdg-basedir.SlackBuild
@@ -28,13 +28,13 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=libxdg-basedir
VERSION=${VERSION:-1.2.2}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
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
@@ -52,8 +52,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"
@@ -98,6 +98,9 @@ CXXFLAGS="$SLKCFLAGS" \
make
make install DESTDIR=$PKG
+# Don't ship .la files:
+rm -f $PKG/usr/lib${LIBDIRSUFFIX}/*.la
+
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