summaryrefslogtreecommitdiff
path: root/libraries/libfm/libfm.SlackBuild
diff options
context:
space:
mode:
authorponce <matteo.bernardini@gmail.com>2012-08-16 10:18:49 +0200
committerRobby Workman <rworkman@slackbuilds.org>2012-08-21 08:55:33 -0500
commitb95c1e9a4ae30d8234448bf7fbbb2e3ce45220c9 (patch)
treefe5a0110135e45f1a62382be217238be6baecf96 /libraries/libfm/libfm.SlackBuild
parent4ff631ec0a3a1a336f9d5c328ca4c166f0b4ebc6 (diff)
downloadslackbuilds-b95c1e9a4ae30d8234448bf7fbbb2e3ce45220c9.tar.gz
libraries/libfm: Updated for version 1.0.
This also adds a small patch from upstream for bug 3557764. Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'libraries/libfm/libfm.SlackBuild')
-rw-r--r--libraries/libfm/libfm.SlackBuild15
1 files changed, 13 insertions, 2 deletions
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 <matteo.bernardini@gmail.com>
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