# HG changeset patch # User Rohit Joshi # Date 1269259586 0 # Node ID a4542133af0195c9bcf8b00c93c220223419601f # Parent dadda82439819d86d94e169af7ed429000a1d64b Add slitaz suggested-applications diff -r dadda8243981 -r a4542133af01 suggested-applications/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/suggested-applications/receipt Mon Mar 22 12:06:26 2010 +0000 @@ -0,0 +1,16 @@ +# SliTaz package receipt. + +PACKAGE="suggested-applications" +VERSION="1.0" +CATEGORY="network" +SHORT_DESC="Set of desktop files for default applications." +MAINTAINER="jozee@slitaz.org" +WEB_SITE="http://www.slitaz.org/" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/share $fs/usr/bin + cp -a stuff/applications $fs/usr/share + cp -a stuff/default-app $fs/usr/bin/ +} diff -r dadda8243981 -r a4542133af01 suggested-applications/stuff/applications/chat.desktop --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/suggested-applications/stuff/applications/chat.desktop Mon Mar 22 12:06:26 2010 +0000 @@ -0,0 +1,7 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=Chat +Icon=internet-group-chat +Exec=default-app pidgin --install "pidgin get-skype" +Type=Application +Categories=Internet;Network; diff -r dadda8243981 -r a4542133af01 suggested-applications/stuff/applications/editimage.desktop --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/suggested-applications/stuff/applications/editimage.desktop Mon Mar 22 12:06:26 2010 +0000 @@ -0,0 +1,7 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=Edit Images +Icon=applications-graphics +Exec=default-app gimp --install "gimp inkscape" +Type=Application +Categories=Graphics; diff -r dadda8243981 -r a4542133af01 suggested-applications/stuff/applications/watchvideo.desktop --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/suggested-applications/stuff/applications/watchvideo.desktop Mon Mar 22 12:06:26 2010 +0000 @@ -0,0 +1,7 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=Watch Video +Icon=applications-multimedia +Exec=default-app gmplayer --install "mplayer-svn get-flash-plugin gecko-mediaplayer" +Type=Application +Categories=Multimedia;AudioVideo;Audio;Player; diff -r dadda8243981 -r a4542133af01 suggested-applications/stuff/applications/writedoc.desktop --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/suggested-applications/stuff/applications/writedoc.desktop Mon Mar 22 12:06:26 2010 +0000 @@ -0,0 +1,7 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=Write doc +Icon=text-editor +Exec=default-app abiword --install "abiword gnumeric" +Type=Application +Categories=Office; diff -r dadda8243981 -r a4542133af01 suggested-applications/stuff/default-app --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/suggested-applications/stuff/default-app Mon Mar 22 12:06:26 2010 +0000 @@ -0,0 +1,36 @@ +#!/bin/sh + +APP="$1" + +# Auto Install DEPENDS and/or SUGGESTED +install() +{ + TMPFILE="/tmp/installlist-$$" + #echo "pkgs to install: $1" + for pkg in $1 ; do + if [ ! -d /var/lib/tazpkg/installed/${pkg} ]; then + echo "$pkg" >> $TMPFILE + fi + done + + if [ -f $TMPFILE ] ; then + xterm -geometry 80x16 -title "Installing Packages (Press ENTER to close and proceed)" \ + -e "echo -n \"Installing packages as root. This option depends on \ + `cat $TMPFILE`\"; + echo \" \" + subox tazpkg get-install-list $TMPFILE --forced; + echo -e \"----\nPress ENTER to close and proceed further when done...\"; read i; exit 0; + " + rm -f $TMPFILE + fi + +} + +if [ "$2" == "--install" ] ; then + SUGGESTED="$3" + install "$SUGGESTED" +fi + +$APP & + +exit 0