wok diff magicpoint/receipt @ rev 20614
palemoon: force arch
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Dec 20 21:37:38 2018 +0100 (2018-12-20) |
parents | a8df27023cb2 |
children | 241fb98cab1c |
line diff
1.1 --- a/magicpoint/receipt Fri Dec 16 10:45:18 2016 +0100 1.2 +++ b/magicpoint/receipt Thu Dec 20 21:37:38 2018 +0100 1.3 @@ -36,10 +36,34 @@ 1.4 # Rules to gen a SliTaz package suitable for Tazpkg. 1.5 genpkg_rules() 1.6 { 1.7 - mkdir -p $fs/usr/lib/X11/mgp $install/usr/share/doc $install/usr/share/man 1.8 + mkdir -p $fs/usr/lib/X11/mgp $fs/usr/share/applications 1.9 + mkdir -p $install/usr/share/doc $install/usr/share/man 1.10 cp -f $install/usr/lib/X11/mgp/default.mgp $fs/usr/lib/X11/mgp 1.11 cp -a $install/usr/bin $fs/usr 1.12 cp $src/*.man $install/usr/share/man/ 1.13 cp $src/COPYRIGHT $src/FAQ $src/RE* $src/SYNTAX $install/usr/share/doc 1.14 cp $src/USAGE $install/usr/share/doc 1.15 + cat > $fs/usr/share/applications/magicpoint.desktop <<EOT 1.16 +[Desktop Entry] 1.17 +Type=Application 1.18 +Name=MagicPoint Presentation 1.19 +Name[fr]=Présentation Magicpoint 1.20 +Icon=x-office-presentation 1.21 +Exec=mgp %f 1.22 +MimeType=application/x-magicpoint 1.23 +Categories=GTK;Office;Viewer; 1.24 +EOT 1.25 +} 1.26 + 1.27 +post_install() 1.28 +{ 1.29 + for i in magicpoint mgp ; do 1.30 + grep -q application/x-$i $1/usr/share/applications/defaults.list || 1.31 + echo "application/x-$i=magicpoint.desktop" >> $1/usr/share/applications/defaults.list 1.32 + done 1.33 +} 1.34 + 1.35 +post_remove() 1.36 +{ 1.37 + sed -i '/=magicpoint.desktop/' $1/usr/share/applications/defaults.list 1.38 } 1.39 \ No newline at end of file