desktop/xmms-status-plugin: Use system-provided libtool binary

Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
Petar Petrov 2013-11-26 10:30:28 -06:00 committed by Robby Workman
parent 5466904f4e
commit 3a43699fb6
2 changed files with 11 additions and 2 deletions

View file

@ -1,2 +1,4 @@
This is a general plugin for XMMS, that provides a status docklet for
the application.
NOTE: This may not work properly in KDE.

View file

@ -2,7 +2,7 @@
# Slackware build script for xmms-status-plugin
# Copyright 2012 Petar Petrov, ppetrov@paju.oulu.fi
# Copyright 2012-2013 Petar Petrov, petar.petrov@student.oulu.fi
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -24,7 +24,7 @@
PRGNAM=xmms-status-plugin
VERSION=${VERSION:-1.0}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@ -69,6 +69,10 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
# Force the Makefile to use the installed version of libtool.
# Thanks to Larry Hajali for the fix.
sed -i 's|^LIBTOOL =.*|LIBTOOL = /usr/bin/libtool|' $(find . -iname "Makefile.*")
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
@ -84,6 +88,9 @@ CXXFLAGS="$SLKCFLAGS" \
make
make install DESTDIR=$PKG
# Remove the static library.
rm -rf $PKG/usr/lib${LIBDIRSUFFIX}/xmms/General/libstatusdocklet.a
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