tshared install fixes - tomb - the crypto undertaker
 (HTM) git clone git://parazyd.org/tomb.git
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit b1208fca609d768e943baf198f3ea70fef23f74c
 (DIR) parent 0089f43a4d2b6d786aaf49de2b5cde54650b7154
 (HTM) Author: Jaromil <jaromil@dyne.org>
       Date:   Fri, 25 Feb 2011 01:15:39 +0100
       
       shared install fixes
       
       Diffstat:
         M share/Makefile.am                   |      13 +++++++++----
         A share/gtkrc.in                      |       3 +++
         A share/tomb.mimepkg                  |       2 ++
       
       3 files changed, 14 insertions(+), 4 deletions(-)
       ---
 (DIR) diff --git a/share/Makefile.am b/share/Makefile.am
       t@@ -19,17 +19,22 @@ AppInstIcon_DATA = monmort.png
        AppInstDeskdir = $(datadir)/app-install/desktop
        AppInstDesk_DATA = tomb.desktop
        
       +gtkrc:
       +        sed -e 's@\%prefix\%@'"$(datadir)"'@' gtkrc.in > gtkrc
       +
       +GtkRcdir = $(datadir)/themes/tomb/gtk-2.0-key
       +GtkRc_DATA = gtkrc
       +
       +MimePkgdir = $(prefix)/lib/mime/packages/tomb
       +MimePkg = tomb.mimepkg
       +
        install-data-hook:
                @echo "installing mime type"
                @if ! [ -n `which xdg-mime` ]; then xdg-mime install dyne-tomb.xml; fi
       -        @mkdir -p $(prefix)/lib/mime/packages
       -        @echo "application/x-tomb-volume; tomb-open '%s'; priority=8" > $(prefix)/lib/mime/packages/tomb
                @echo "installing icons";
                @if ! [ -n `which xdg-icon-resource` ]; then \
                        xdg-icon-resource install --context mimetypes --size 32 ../src/monmort.xpm monmort; \
                        xdg-icon-resource install --size 32 ../src/monmort.xpm dyne-monmort; fi
       -        mkdir -p $(datadir)/themes/tomb/gtk-2.0-key
       -        sed -e 's@\%prefix\%@'"$(datadir)"'@' gtkrc-2.0 > $(datadir)/themes/tomb/gtk-2.0-key/gtkrc
                @if ! [ -n `which update-desktop-database` ]; then echo update-desktop-database; update-desktop-database; fi
                @if ! [ -n `which update-menus` ]; then echo update-menus;  update-menus; fi
                @if ! [ -n `which update-mime` ]; then echo update-mime; update-mime; fi
 (DIR) diff --git a/share/gtkrc.in b/share/gtkrc.in
       t@@ -0,0 +1,3 @@
       +pixmap_path "%prefix%/pixmaps"
       +style "normal" { stock["gtk-dialog-authentication"] = {{"monmort.xpm"}} }
       +widget "*" style "normal"
 (DIR) diff --git a/share/tomb.mimepkg b/share/tomb.mimepkg
       t@@ -0,0 +1 @@
       +application/x-tomb-volume; tomb-open '%s'; priority=8
       +\ No newline at end of file