summaryrefslogtreecommitdiff
path: root/office/freemind/freemind.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'office/freemind/freemind.SlackBuild')
-rw-r--r--office/freemind/freemind.SlackBuild6
1 files changed, 5 insertions, 1 deletions
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