aboutsummaryrefslogtreecommitdiff
path: root/libraries/libfm/libfm.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/libfm/libfm.SlackBuild')
-rw-r--r--libraries/libfm/libfm.SlackBuild19
1 files changed, 15 insertions, 4 deletions
diff --git a/libraries/libfm/libfm.SlackBuild b/libraries/libfm/libfm.SlackBuild
index 9b55d14ce9bc9..efcc051c75f5f 100644
--- a/libraries/libfm/libfm.SlackBuild
+++ b/libraries/libfm/libfm.SlackBuild
@@ -21,9 +21,11 @@
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+#
+# slightly modified by ponce <matteo.bernardini@gmail.com>
PRGNAM=libfm
-VERSION=${VERSION:-20110316_c604674}
+VERSION=${VERSION:-0.1.17}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -78,14 +80,22 @@ CXXFLAGS="$SLKCFLAGS" \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
- --enable-udisks \
- --disable-debug \
- --disable-static \
+ --enable-udisks=yes \
+ --enable-static=no \
--build=$ARCH-slackware-linux
make
make install-strip DESTDIR=$PKG
+# 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
+# add them also for web browser and mail client using those of Slackware
+sed -i -e 's|^WebBrowser=.*|WebBrowser=mozilla-firefox.desktop|' \
+ $PKG/etc/xdg/libfm/pref-apps.conf
+sed -i -e 's|^MailClient=.*|MailClient=mozilla-thunderbird.desktop|' \
+ $PKG/etc/xdg/libfm/pref-apps.conf
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS COPYING README TODO \
$PKG/usr/doc/$PRGNAM-$VERSION
@@ -94,6 +104,7 @@ find $PKG/usr/doc -type f -exec chmod 0644 {} \;
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}