wok-current rev 5130

Add slitaz suggested-applications
author Rohit Joshi <jozee@slitaz.org>
date Mon Mar 22 12:06:26 2010 +0000 (2010-03-22)
parents dadda8243981
children 67404973a113
files suggested-applications/receipt suggested-applications/stuff/applications/chat.desktop suggested-applications/stuff/applications/editimage.desktop suggested-applications/stuff/applications/watchvideo.desktop suggested-applications/stuff/applications/writedoc.desktop suggested-applications/stuff/default-app
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/suggested-applications/receipt	Mon Mar 22 12:06:26 2010 +0000
     1.3 @@ -0,0 +1,16 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="suggested-applications"
     1.7 +VERSION="1.0"
     1.8 +CATEGORY="network"
     1.9 +SHORT_DESC="Set of desktop files for default applications."
    1.10 +MAINTAINER="jozee@slitaz.org"
    1.11 +WEB_SITE="http://www.slitaz.org/"
    1.12 +
    1.13 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.14 +genpkg_rules()
    1.15 +{
    1.16 +	mkdir -p $fs/usr/share $fs/usr/bin
    1.17 +	cp -a stuff/applications $fs/usr/share
    1.18 +	cp -a stuff/default-app $fs/usr/bin/
    1.19 +}
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/suggested-applications/stuff/applications/chat.desktop	Mon Mar 22 12:06:26 2010 +0000
     2.3 @@ -0,0 +1,7 @@
     2.4 +[Desktop Entry]
     2.5 +Encoding=UTF-8
     2.6 +Name=Chat
     2.7 +Icon=internet-group-chat
     2.8 +Exec=default-app pidgin --install "pidgin get-skype"
     2.9 +Type=Application
    2.10 +Categories=Internet;Network;
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/suggested-applications/stuff/applications/editimage.desktop	Mon Mar 22 12:06:26 2010 +0000
     3.3 @@ -0,0 +1,7 @@
     3.4 +[Desktop Entry]
     3.5 +Encoding=UTF-8
     3.6 +Name=Edit Images
     3.7 +Icon=applications-graphics
     3.8 +Exec=default-app gimp --install "gimp inkscape"
     3.9 +Type=Application
    3.10 +Categories=Graphics;
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/suggested-applications/stuff/applications/watchvideo.desktop	Mon Mar 22 12:06:26 2010 +0000
     4.3 @@ -0,0 +1,7 @@
     4.4 +[Desktop Entry]
     4.5 +Encoding=UTF-8
     4.6 +Name=Watch Video
     4.7 +Icon=applications-multimedia
     4.8 +Exec=default-app gmplayer --install "mplayer-svn get-flash-plugin gecko-mediaplayer"
     4.9 +Type=Application
    4.10 +Categories=Multimedia;AudioVideo;Audio;Player;
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/suggested-applications/stuff/applications/writedoc.desktop	Mon Mar 22 12:06:26 2010 +0000
     5.3 @@ -0,0 +1,7 @@
     5.4 +[Desktop Entry]
     5.5 +Encoding=UTF-8
     5.6 +Name=Write doc
     5.7 +Icon=text-editor
     5.8 +Exec=default-app abiword --install "abiword gnumeric"
     5.9 +Type=Application
    5.10 +Categories=Office;
     6.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.2 +++ b/suggested-applications/stuff/default-app	Mon Mar 22 12:06:26 2010 +0000
     6.3 @@ -0,0 +1,36 @@
     6.4 +#!/bin/sh
     6.5 +
     6.6 +APP="$1"
     6.7 +
     6.8 +# Auto Install DEPENDS and/or SUGGESTED
     6.9 +install()
    6.10 +{
    6.11 +	TMPFILE="/tmp/installlist-$$"
    6.12 +	#echo "pkgs to install: $1"
    6.13 +	for pkg in $1 ; do
    6.14 +	  	if [ ! -d /var/lib/tazpkg/installed/${pkg} ]; then
    6.15 +			echo "$pkg" >> $TMPFILE
    6.16 +		fi	
    6.17 +	done 
    6.18 +	
    6.19 +	if [ -f $TMPFILE ] ; then
    6.20 +		xterm -geometry 80x16 -title "Installing Packages (Press ENTER to close and proceed)" \
    6.21 +				-e "echo -n \"Installing packages as root. This option depends on \
    6.22 +				 `cat $TMPFILE`\"; 
    6.23 +				   echo \" \"
    6.24 +				    subox tazpkg get-install-list $TMPFILE --forced;
    6.25 +				    echo -e \"----\nPress ENTER to close and proceed further when done...\"; read i; exit 0;
    6.26 +				"
    6.27 +		rm -f $TMPFILE
    6.28 +	fi	
    6.29 +	
    6.30 +}
    6.31 +
    6.32 +if [ "$2" == "--install" ] ; then
    6.33 +	SUGGESTED="$3"
    6.34 +	install "$SUGGESTED"
    6.35 +fi
    6.36 +
    6.37 +$APP &
    6.38 +
    6.39 +exit 0