summaryrefslogtreecommitdiff
path: root/libraries/libfm/libfm.SlackBuild
diff options
context:
space:
mode:
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