summaryrefslogtreecommitdiffstats
path: root/office/freemind
diff options
context:
space:
mode:
author Dhaby Xiloj <slack.dhabyx@gmail.com>2010-05-12 17:44:42 +0200
committer David Somero <xgizzmo@slackbuilds.org>2010-05-12 17:44:42 +0200
commit47874599e7e1fc274c09c43192aaa41a20ee242b (patch)
treebf18b3ccea5712b92edf5ee128e5bdd1dd88778c /office/freemind
parentc86b95515a424601cf61ff5a417b803ac7b1e88e (diff)
downloadslackbuilds-47874599e7e1fc274c09c43192aaa41a20ee242b.tar.gz
slackbuilds-47874599e7e1fc274c09c43192aaa41a20ee242b.tar.xz
office/freemind: Updated for version 0.8.1
Diffstat (limited to 'office/freemind')
-rw-r--r--office/freemind/doinst.sh8
-rw-r--r--office/freemind/freemind.SlackBuild6
-rw-r--r--office/freemind/freemind.desktop3
-rw-r--r--office/freemind/freemind.info2
-rw-r--r--office/freemind/freemind.xml11
5 files changed, 27 insertions, 3 deletions
diff --git a/office/freemind/doinst.sh b/office/freemind/doinst.sh
new file mode 100644
index 0000000000..e4e6459838
--- /dev/null
+++ b/office/freemind/doinst.sh
@@ -0,0 +1,8 @@
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
+fi
+
+if [ -x /usr/bin/update-mime-database ]; then
+ /usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1
+fi
+
diff --git a/office/freemind/freemind.SlackBuild b/office/freemind/freemind.SlackBuild
index a20f17f4c4..21cb070951 100644
--- a/office/freemind/freemind.SlackBuild
+++ b/office/freemind/freemind.SlackBuild
@@ -4,6 +4,7 @@
# Copyright (c) 2008, Dhaby Xiloj <slack.dhabyx@gmail.com>
# All rights reserved.
+# Thanks to Vincent Batts for mimetype file idea.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
@@ -67,11 +68,13 @@ EOF
chmod 0755 $PKG/opt/$PRGNAM/freemind.sh
chmod 0755 $PKG/usr/bin/$PRGNAM
-# Add freemind to KDE/GNOME/XFCE menu and install an icon for them
+# Add freemind to KDE/GNOME/XFCE menu and install an icon for theme and mimetype
install -D -m 0644 $CWD/$PRGNAM.desktop \
$PKG/usr/share/applications/$PRGNAM.desktop
install -D -m 0644 $CWD/freemind.png \
$PKG/usr/share/pixmaps/$PRGNAM.png
+install -D -m 0644 $CWD/$PRGNAM.xml \
+ $PKG/usr/share/mime/packages/$PRGNAM.xml
( cd $PKG
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
@@ -86,6 +89,7 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
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 -p $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
diff --git a/office/freemind/freemind.desktop b/office/freemind/freemind.desktop
index fce8751f55..075053b03e 100644
--- a/office/freemind/freemind.desktop
+++ b/office/freemind/freemind.desktop
@@ -7,4 +7,5 @@ GenericName=FreeMind
Comment=Mind Mapping Tool
Icon=freemind
StartupNotify=true
-Categories=Qt;KDE;Office;GNOME;Application;Office;
+MimeType=application/x-freemind;
+Categories=Qt;KDE;GNOME;Application;Office;
diff --git a/office/freemind/freemind.info b/office/freemind/freemind.info
index f83f7c3d45..ae31b1d825 100644
--- a/office/freemind/freemind.info
+++ b/office/freemind/freemind.info
@@ -5,4 +5,4 @@ DOWNLOAD="http://downloads.sourceforge.net/freemind/freemind-bin-max-0_8_1.zip"
MD5SUM="e6078a7116e3dca610817c3c60db4cbf"
MAINTAINER="Dhaby Xiloj"
EMAIL="slack.dhabyx@gmail.com"
-APPROVED="David Somero"
+APPROVED="dsomero"
diff --git a/office/freemind/freemind.xml b/office/freemind/freemind.xml
new file mode 100644
index 0000000000..9d4bcae2f5
--- /dev/null
+++ b/office/freemind/freemind.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
+ <mime-type type="application/x-freemind">
+ <comment>FreeMind Map</comment>
+ <magic priority="80">
+ <match value="&lt;map version" type="string" offset="0:20"/>
+ <match value="FreeMind" type="string" offset="50:100"/>
+ </magic>
+ <glob pattern="*.mm"/>
+ </mime-type>
+</mime-info>