# HG changeset patch # User Pascal Bellard # Date 1451148635 -3600 # Node ID 98f4f9b3107643ee9c142614b2482bcf88ef4613 # Parent 04d1aa7b70cab00da63f189f97aea09ad38e286a marble: one desktop entry only (again) diff -r 04d1aa7b70ca -r 98f4f9b31076 marble/receipt --- a/marble/receipt Sat Dec 26 17:39:02 2015 +0200 +++ b/marble/receipt Sat Dec 26 17:50:35 2015 +0100 @@ -23,23 +23,23 @@ -DCMAKE_INSTALL_PREFIX=/usr .. && make && make install + + # remove unwanted files + cd $DESTDIR/usr/share/applications + mv marble_osm.desktop marble.desktop + for i in $(sed '/MimeType/!d;s/.*=//' marble_*); do + sed -i "s|MimeType.*|&$i|" marble.desktop + done + rm -f marble_*.desktop marble-*.desktop } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { cp -a $install/usr $fs - cd $fs/usr/share/applications - mv marble_osm.desktop marble.desktop - for i in $(sed '/MimeType/!d;s/.*=//' marble_*); do - sed -i "s|MimeType.*|&$i|" marble.desktop - done # remove unwanted files rm -rf $fs/usr/include rm -rf $fs/usr/share/marble/cmake rm $fs/usr/bin/marble-mobile $fs/usr/bin/marble-touch - for i in '-mobile' '-touch' '-qt' '_gpx' '_kml'; do - rm $fs/usr/share/applications/marble$i.desktop - done }