From b95c1e9a4ae30d8234448bf7fbbb2e3ce45220c9 Mon Sep 17 00:00:00 2001 From: ponce Date: Thu, 16 Aug 2012 10:18:49 +0200 Subject: libraries/libfm: Updated for version 1.0. This also adds a small patch from upstream for bug 3557764. Signed-off-by: Robby Workman --- libraries/libfm/libfm.SlackBuild | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'libraries/libfm/libfm.SlackBuild') diff --git a/libraries/libfm/libfm.SlackBuild b/libraries/libfm/libfm.SlackBuild index efcc051c75..b46062de48 100644 --- a/libraries/libfm/libfm.SlackBuild +++ b/libraries/libfm/libfm.SlackBuild @@ -25,7 +25,7 @@ # slightly modified by ponce PRGNAM=libfm -VERSION=${VERSION:-0.1.17} +VERSION=${VERSION:-1.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -71,6 +71,10 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; +# Fix a segfault reported on the issue tracker +# https://sourceforge.net/tracker/?func=detail&atid=801864&aid=3557764&group_id=156956 +patch -p1 < $CWD/libfm_issue_3557764.patch + sh autogen.sh || true CFLAGS="$SLKCFLAGS" \ @@ -80,13 +84,20 @@ CXXFLAGS="$SLKCFLAGS" \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --sysconfdir=/etc \ --localstatedir=/var \ - --enable-udisks=yes \ + --mandir=/usr/man \ --enable-static=no \ + --enable-gtk-doc \ --build=$ARCH-slackware-linux make make install-strip 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 + +find $PKG/usr/man -type f -exec gzip -9 {} \; +for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done + # add handlers for terminal and archiver from LXDE components to the default config sed -i -e 's|\[ui\]|terminal=lxterminal -e %s\narchiver=xarchiver %s\n\n[ui]|' \ $PKG/etc/xdg/libfm/libfm.conf -- cgit v1.2.3