Install icons directly
authorH.G. Muller <h.g.muller@hccnet.nl>
Sat, 7 Jan 2012 19:19:09 +0000 (20:19 +0100)
committerH.G. Muller <h.g.muller@hccnet.nl>
Sat, 7 Jan 2012 19:35:18 +0000 (20:35 +0100)
Rather than letting make-install copy the pixmaps to the XBoard data
directory they are installed directly from the source files. The name
of the TRN icon was also corrected and changed.

Makefile.am
xboard.xml

index 73887eb..d95135d 100644 (file)
@@ -147,10 +147,7 @@ dist_bitmaps_DATA = \
 ### directory and files for pixmaps
 
 pixmapsdir = $(datadir)/games/xboard/pixmaps/textures
-dist_pixmaps_DATA = pixmaps/wood_d.xpm pixmaps/wood_l.xpm \
-                    pixmaps/cross32.xpm pixmaps/cross48.xpm \
-                    pixmaps/board32.xpm pixmaps/board48.xpm
-
+dist_pixmaps_DATA = pixmaps/wood_d.xpm pixmaps/wood_l.xpm
 
 ### directory and files for sound files
 
@@ -187,10 +184,10 @@ install-mime-database:
                xdg-desktop-menu install --mode system --novendor $(Applicationsdir)/xboard-pgn-viewer.desktop;\
                xdg-desktop-menu install --mode system --novendor $(Applicationsdir)/xboard-fen-viewer.desktop;\
                xdg-desktop-menu install --mode system --novendor $(Applicationsdir)/xboard-tourney.desktop;\
-               xdg-icon-resource install --context mimetypes --size 32 $(pixmapsdir)/board32.xpm application-x-chess-pgn;\
-               xdg-icon-resource install --context mimetypes --size 32 $(pixmapsdir)/cross32.xpm x-xboard-pgn;\
-               xdg-icon-resource install --context mimetypes --size 48 $(pixmapsdir)/board48.xpm application-x-chess-pgn;\
-               xdg-icon-resource install --context mimetypes --size 48 $(pixmapsdir)/cross48.xpm x-xboard-pgn;\
+               xdg-icon-resource install --context mimetypes --size 32 pixmaps/board32.xpm application-x-chess-pgn;\
+               xdg-icon-resource install --context mimetypes --size 32 pixmaps/cross32.xpm application-x-xboard-trn;\
+               xdg-icon-resource install --context mimetypes --size 48 pixmaps/board48.xpm application-x-chess-pgn;\
+               xdg-icon-resource install --context mimetypes --size 48 pixmaps/cross48.xpm application-x-xboard-trn;\
        fi
 uninstall-mime-database:
        @-if test -z "$(DESTDIR)"; then \
@@ -199,7 +196,7 @@ uninstall-mime-database:
                xdg-desktop-menu uninstall --mode system --novendor xboard-fen-viewer.desktop;\
                xdg-desktop-menu uninstall --mode system --novendor xboard-tourney.desktop;\
                xdg-icon-resource uninstall --context mimetypes --size 32 board32.xpm application-x-chess-pgn;\
-               xdg-icon-resource uninstall --context mimetypes --size 32 cross32.xpm x-xboard-pgn;\
+               xdg-icon-resource uninstall --context mimetypes --size 32 cross32.xpm application-x-xboard-trn;\
                xdg-icon-resource uninstall --context mimetypes --size 48 board48.xpm application-x-chess-pgn;\
-               xdg-icon-resource uninstall --context mimetypes --size 48 cross48.xpm x-xboard-pgn;\
-       fi
\ No newline at end of file
+               xdg-icon-resource uninstall --context mimetypes --size 48 cross48.xpm application-x-xboard-trn;\
+       fi
index dc52bfa..c8be679 100644 (file)
@@ -51,7 +51,7 @@
   </mime-type>
   <mime-type type="application/x-xboard-trn">
     <comment>XBoard tournament</comment>
-    <generic-icon name="x-xboard-trn"/>
+    <generic-icon name="application-x-xboard-trn"/>
     <glob pattern="*.trn"/>
     <sub-class-of type="text/plain"/>
     <magic priority="50">