wok-6.x rev 10836

Add idesk (may be used for a kids flavor)
author Christophe Lincoln <pankso@slitaz.org>
date Wed Jun 08 23:19:22 2011 +0200 (2011-06-08)
parents 2161c145d5b3
children 77d17715f02a
files idesk/receipt idesk/stuff/DesktopConfig.patch idesk/stuff/default.lnk
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/idesk/receipt	Wed Jun 08 23:19:22 2011 +0200
     1.3 @@ -0,0 +1,38 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="idesk"
     1.7 +VERSION="0.7.5"
     1.8 +CATEGORY="x-window"
     1.9 +SHORT_DESC="IDesk gives users icons on their desktop."
    1.10 +MAINTAINER="pankso@slitaz.org"
    1.11 +TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.12 +WEB_SITE="http://idesk.sourceforge.net/"
    1.13 +WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    1.14 +
    1.15 +DEPENDS="imlib2 xorg-libXft"
    1.16 +BUILD_DEPENDS="imlib2-dev xorg-libXft-dev"
    1.17 +
    1.18 +# Rules to configure and make the package.
    1.19 +compile_rules()
    1.20 +{
    1.21 +	cd $src
    1.22 +	patch -p 0 < $stuff/DesktopConfig.patch || exit 1
    1.23 +	./configure \
    1.24 +		--enable-xft \
    1.25 +		$CONFIGURE_ARGS &&
    1.26 +	make && make DESTDIR=$DESTDIR install
    1.27 +}
    1.28 +
    1.29 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.30 +genpkg_rules()
    1.31 +{
    1.32 +	mkdir -p $fs/usr/share
    1.33 +	cp -a $install/usr/bin $fs/usr
    1.34 +	cp -a $install/usr/share/idesk $fs/usr/share
    1.35 +	rm -f \
    1.36 +		$fs/usr/share/idesk/*.xpm \
    1.37 +		$fs/usr/share/idesk/*.lnk \
    1.38 +		$fs/usr/share/idesk/README
    1.39 +	# Custom default.lnk with Home icon
    1.40 +	cp -f $stuff/default.lnk $fs/usr/share/idesk
    1.41 +}
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/idesk/stuff/DesktopConfig.patch	Wed Jun 08 23:19:22 2011 +0200
     2.3 @@ -0,0 +1,12 @@
     2.4 +--- src/DesktopConfig.cpp.0
     2.5 ++++ src/DesktopConfig.cpp
     2.6 +@@ -24,6 +24,9 @@
     2.7 + 
     2.8 + #include "DesktopConfig.h"
     2.9 + #include "Util.h"
    2.10 ++#include <unistd.h>
    2.11 ++#include <sys/stat.h>
    2.12 ++#include <sys/types.h>
    2.13 + 
    2.14 + //the initilizer list just sets the program defaults for non-necessary options
    2.15 + DesktopConfig::DesktopConfig(Database db, string ideskrcFile) :
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/idesk/stuff/default.lnk	Wed Jun 08 23:19:22 2011 +0200
     3.3 @@ -0,0 +1,9 @@
     3.4 +table Icon
     3.5 +  Caption: Home
     3.6 +  Command: file-manager $HOME
     3.7 +  Icon: /usr/share/pixmaps/slitaz-menu.png
     3.8 +  Width: 32
     3.9 +  Height: 32
    3.10 +  X: 30
    3.11 +  Y: 30
    3.12 +end