From 4655298ccb41167702465f37e69a52dda9a09198 Mon Sep 17 00:00:00 2001 From: Hunter Sezen Date: Sun, 24 Jun 2018 07:56:02 +0700 Subject: development/slibtool: Updated for version 0.5.20. Signed-off-by: Willy Sudiarto Raharjo --- development/slibtool/slibtool.SlackBuild | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'development/slibtool/slibtool.SlackBuild') diff --git a/development/slibtool/slibtool.SlackBuild b/development/slibtool/slibtool.SlackBuild index fa4e0c4139..8b023f429c 100644 --- a/development/slibtool/slibtool.SlackBuild +++ b/development/slibtool/slibtool.SlackBuild @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=slibtool -VERSION=${VERSION:-0.5.19} +VERSION=${VERSION:-0.5.20} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -69,6 +69,9 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +[ "${DEBUG:=0}" != 0 ] && \ + SLKCFLAGS="$(printf %s "$SLKCFLAGS" | sed 's/-O2/-O0 -g/')" + CFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ @@ -80,8 +83,10 @@ CFLAGS="$SLKCFLAGS" \ make make install DESTDIR=$PKG -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 +if [ "$DEBUG" = 0 ]; then + 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 +fi mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a CONTRIB COPYING.SLIBTOOL NEWS README THANKS $PKG/usr/doc/$PRGNAM-$VERSION -- cgit v1.2.3