wok-current rev 998

receipt for the rox-filer
author Pierre-Jean Fichet <sygne@ombres.eu>
date Sun Jul 06 16:49:01 2008 +0200 (2008-07-06)
parents 9de6b694763c
children 6cc385ceca6c
files rox-filer/receipt rox-filer/stuff/menu.diff rox-filer/stuff/rox-filer rox-filer/stuff/rox-filer.desktop rox-filer/stuff/rox-open-folder-menu.sh
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/rox-filer/receipt	Sun Jul 06 16:49:01 2008 +0200
     1.3 @@ -0,0 +1,78 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="rox-filer"
     1.7 +VERSION="2.8"
     1.8 +CATEGORY="system-tools"
     1.9 +SHORT_DESC="user friendly filer."
    1.10 +MAINTAINER="sygne@ombres.eu"
    1.11 +DEPENDS="gtk+"
    1.12 +BUILD_DEPENDS="libglade-dev libxml2-dev gtk+-dev slitaz-dev-pkgs"
    1.13 +TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.14 +WEB_SITE="http://roscidus.com/desktop/"
    1.15 +WGET_URL="http://downloads.sourceforge.net/rox/$TARBALL"
    1.16 +
    1.17 +# Rules to configure and make the package.
    1.18 +compile_rules()
    1.19 +{
    1.20 +	echo "patch"
    1.21 +	patch $src/ROX-Filer/src/menu.c stuff/menu.diff
    1.22 +	echo "compile"
    1.23 +	$src/ROX-Filer/AppRun --compile
    1.24 +	echo "mkdir"
    1.25 +	mkdir $src/_pkg
    1.26 +	cp $src/ROX-Filer/ROX-Filer $src/_pkg/rox-filer
    1.27 +	cp $src/ROX-Filer/.DirIcon $src/_pkg/
    1.28 +
    1.29 +	mkdir $src/_pkg/Messages
    1.30 +	for locale in de es fr it
    1.31 +		do
    1.32 +		cp -r $src/ROX-Filer/Messages/$locale $src/_pkg/Messages
    1.33 +		done
    1.34 +		
    1.35 +	cp -r $src/ROX-Filer/images $src/_pkg/
    1.36 +	
    1.37 +	mkdir $src/_pkg/Help
    1.38 +	cp $src/ROX-Filer/Help/*.html $src/_pkg/Help/
    1.39 +	cp $src/ROX-Filer/style.css $src/_pkg/
    1.40 +	
    1.41 +	cp $src/ROX-Filer/Options.xml $src/_pkg/
    1.42 +	cp $src/ROX-Filer/Templates.glade $src/_pkg/
    1.43 +}
    1.44 +
    1.45 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.46 +genpkg_rules()
    1.47 +{
    1.48 +	mkdir -p $fs/usr/share/rox-filer
    1.49 +	cp -r $_pkg/* $fs/usr/share/rox-filer/
    1.50 +	cp $_pkg/.DirIcon $fs/usr/share/rox-filer/
    1.51 +	
    1.52 +	mkdir -p $fs/usr/bin
    1.53 +	cp -r stuff/rox-filer $fs/usr/bin/
    1.54 +	ICI=$(pwd)
    1.55 +		cd $fs/usr/bin/
    1.56 +		ln -s rox-filer rox
    1.57 +	cd $ICI
    1.58 +	
    1.59 +	mkdir -p $fs/usr/lib/openbox
    1.60 +	cp stuff/rox-open-folder-menu.sh $fs/usr/lib/openbox/
    1.61 +	
    1.62 +	strip -s $fs/usr/share/rox-filer/rox-filer
    1.63 +}
    1.64 +
    1.65 +# Post install commands for Tazpkg.
    1.66 +# Check /usr/share/icons/ROX
    1.67 +post_install()
    1.68 +{ 
    1.69 +	. /etc/init.d/rc.functions
    1.70 +
    1.71 +	if [ -e /usr/share/icons/ROX ]; then
    1.72 +		echo ""
    1.73 +		echo "/usr/share/icons/ROX exists"
    1.74 +	else
    1.75 +		echo ""
    1.76 +		echo "/usr/share/icons/ROX doesn't exists"
    1.77 +		echo -n "linking /usr/share/icons/ROX to /usr/share/icons/Tango"
    1.78 +		ln -s /usr/share/icons/Tango /usr/share/icons/ROX
    1.79 +		status
    1.80 +	fi
    1.81 +}
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/rox-filer/stuff/menu.diff	Sun Jul 06 16:49:01 2008 +0200
     2.3 @@ -0,0 +1,85 @@
     2.4 +--- menu.c	Sat May 17 16:40:24 2008
     2.5 ++++ menu2.c	Thu Jun 12 01:37:41 2008
     2.6 +@@ -182,33 +182,10 @@
     2.7 + #define N_(x) x
     2.8 + 
     2.9 + static GtkItemFactoryEntry filer_menu_def[] = {
    2.10 +-{N_("Display"),			NULL, NULL, 0, "<Branch>"},
    2.11 +-{">" N_("Icons View"),   	NULL, view_type, VIEW_TYPE_COLLECTION, NULL},
    2.12 +-{">" N_("Icons, With..."),	NULL, NULL, 0, "<Branch>"},
    2.13 +-{">>" N_("Sizes"),		NULL, set_with, DETAILS_SIZE, NULL},
    2.14 +-{">>" N_("Permissions"),	NULL, set_with, DETAILS_PERMISSIONS, NULL},
    2.15 +-{">>" N_("Types"),		NULL, set_with, DETAILS_TYPE, NULL},
    2.16 +-{">>" N_("Times"),		NULL, set_with, DETAILS_TIMES, NULL},
    2.17 +-{">" N_("List View"),   	NULL, view_type, VIEW_TYPE_DETAILS, "<StockItem>", ROX_STOCK_SHOW_DETAILS},
    2.18 +-{">",				NULL, NULL, 0, "<Separator>"},
    2.19 +-{">" N_("Bigger Icons"),   	"equal", change_size, 1, "<StockItem>", GTK_STOCK_ZOOM_IN},
    2.20 +-{">" N_("Smaller Icons"),   	"minus", change_size, -1, "<StockItem>", GTK_STOCK_ZOOM_OUT},
    2.21 +-{">" N_("Automatic"),   	NULL, change_size_auto, 0, "<ToggleItem>"},
    2.22 +-{">",				NULL, NULL, 0, "<Separator>"},
    2.23 +-{">" N_("Sort by Name"),	NULL, set_sort, SORT_NAME, NULL},
    2.24 +-{">" N_("Sort by Type"),	NULL, set_sort, SORT_TYPE, NULL},
    2.25 +-{">" N_("Sort by Date"),	NULL, set_sort, SORT_DATE, NULL},
    2.26 +-{">" N_("Sort by Size"),	NULL, set_sort, SORT_SIZE, NULL},
    2.27 +-{">" N_("Sort by Owner"),	NULL, set_sort, SORT_OWNER, NULL},
    2.28 +-{">" N_("Sort by Group"),	NULL, set_sort, SORT_GROUP, NULL},
    2.29 +-{">" N_("Reversed"),		NULL, reverse_sort, 0, "<ToggleItem>"},
    2.30 +-{">",				NULL, NULL, 0, "<Separator>"},
    2.31 +-{">" N_("Show Hidden"),   	"<Ctrl>H", hidden, 0, "<ToggleItem>"},
    2.32 +-{">" N_("Filter Files..."),   	NULL, mini_buffer, MINI_FILTER, NULL},
    2.33 +-{">" N_("Filter Directories With Files"),	NULL, filter_directories, 0, "<ToggleItem>"},
    2.34 +-{">" N_("Show Thumbnails"),	NULL, show_thumbs, 0, "<ToggleItem>"},
    2.35 +-{">" N_("Refresh"),		NULL, refresh, 0, "<StockItem>", GTK_STOCK_REFRESH},
    2.36 +-{">" N_("Save Current Display Settings..."),	 NULL, save_settings, 0, NULL},
    2.37 ++{N_("New"),			NULL, NULL, 0, "<Branch>"},
    2.38 ++{">" N_("Directory"),		NULL, new_directory, 0, NULL},
    2.39 ++{">" N_("Blank file"),		NULL, new_file, 0, "<StockItem>", GTK_STOCK_NEW},
    2.40 ++{">" N_("Customise Menu..."),	NULL, customise_new, 0, NULL},
    2.41 + {N_("File"),			NULL, NULL, 0, "<Branch>"},
    2.42 + {">" N_("Copy..."),		"<Ctrl>C", file_op, FILE_COPY_ITEM, "<StockItem>", GTK_STOCK_COPY},
    2.43 + {">" N_("Rename..."),		NULL, file_op, FILE_RENAME_ITEM, NULL},
    2.44 +@@ -233,10 +210,6 @@
    2.45 + {">" N_("Select by Name..."),	"period", mini_buffer, MINI_SELECT_BY_NAME, NULL},
    2.46 + {">" N_("Select If..."),	"<Shift>question", mini_buffer, MINI_SELECT_IF, NULL},
    2.47 + {N_("Options..."),		NULL, menu_show_options, 0, "<StockItem>", GTK_STOCK_PREFERENCES},
    2.48 +-{N_("New"),			NULL, NULL, 0, "<Branch>"},
    2.49 +-{">" N_("Directory"),		NULL, new_directory, 0, NULL},
    2.50 +-{">" N_("Blank file"),		NULL, new_file, 0, "<StockItem>", GTK_STOCK_NEW},
    2.51 +-{">" N_("Customise Menu..."),	NULL, customise_new, 0, NULL},
    2.52 + {N_("Window"),			NULL, NULL, 0, "<Branch>"},
    2.53 + {">" N_("Parent, New Window"), 	NULL, open_parent, 0, "<StockItem>", GTK_STOCK_GO_UP},
    2.54 + {">" N_("Parent, Same Window"), NULL, open_parent_same, 0, NULL},
    2.55 +@@ -254,6 +227,33 @@
    2.56 + {">" N_("Shell Command..."),	"<Shift>exclam", mini_buffer, MINI_SHELL, NULL},
    2.57 + {">" N_("Terminal Here"),	"grave", xterm_here, FALSE, NULL},
    2.58 + {">" N_("Switch to Terminal"),	NULL, xterm_here, TRUE, NULL},
    2.59 ++{N_("Display"),			NULL, NULL, 0, "<Branch>"},
    2.60 ++{">" N_("Icons View"),   	NULL, view_type, VIEW_TYPE_COLLECTION, NULL},
    2.61 ++{">" N_("Icons, With..."),	NULL, NULL, 0, "<Branch>"},
    2.62 ++{">>" N_("Sizes"),		NULL, set_with, DETAILS_SIZE, NULL},
    2.63 ++{">>" N_("Permissions"),	NULL, set_with, DETAILS_PERMISSIONS, NULL},
    2.64 ++{">>" N_("Types"),		NULL, set_with, DETAILS_TYPE, NULL},
    2.65 ++{">>" N_("Times"),		NULL, set_with, DETAILS_TIMES, NULL},
    2.66 ++{">" N_("List View"),   	NULL, view_type, VIEW_TYPE_DETAILS, "<StockItem>", ROX_STOCK_SHOW_DETAILS},
    2.67 ++{">",				NULL, NULL, 0, "<Separator>"},
    2.68 ++{">" N_("Bigger Icons"),   	"equal", change_size, 1, "<StockItem>", GTK_STOCK_ZOOM_IN},
    2.69 ++{">" N_("Smaller Icons"),   	"minus", change_size, -1, "<StockItem>", GTK_STOCK_ZOOM_OUT},
    2.70 ++{">" N_("Automatic"),   	NULL, change_size_auto, 0, "<ToggleItem>"},
    2.71 ++{">",				NULL, NULL, 0, "<Separator>"},
    2.72 ++{">" N_("Sort by Name"),	NULL, set_sort, SORT_NAME, NULL},
    2.73 ++{">" N_("Sort by Type"),	NULL, set_sort, SORT_TYPE, NULL},
    2.74 ++{">" N_("Sort by Date"),	NULL, set_sort, SORT_DATE, NULL},
    2.75 ++{">" N_("Sort by Size"),	NULL, set_sort, SORT_SIZE, NULL},
    2.76 ++{">" N_("Sort by Owner"),	NULL, set_sort, SORT_OWNER, NULL},
    2.77 ++{">" N_("Sort by Group"),	NULL, set_sort, SORT_GROUP, NULL},
    2.78 ++{">" N_("Reversed"),		NULL, reverse_sort, 0, "<ToggleItem>"},
    2.79 ++{">",				NULL, NULL, 0, "<Separator>"},
    2.80 ++{">" N_("Show Hidden"),   	"<Ctrl>H", hidden, 0, "<ToggleItem>"},
    2.81 ++{">" N_("Filter Files..."),   	NULL, mini_buffer, MINI_FILTER, NULL},
    2.82 ++{">" N_("Filter Directories With Files"),	NULL, filter_directories, 0, "<ToggleItem>"},
    2.83 ++{">" N_("Show Thumbnails"),	NULL, show_thumbs, 0, "<ToggleItem>"},
    2.84 ++{">" N_("Refresh"),		NULL, refresh, 0, "<StockItem>", GTK_STOCK_REFRESH},
    2.85 ++{">" N_("Save Current Display Settings..."),	 NULL, save_settings, 0, NULL},
    2.86 + {N_("Help"),			NULL, NULL, 0, "<Branch>"},
    2.87 + {">" N_("About ROX-Filer..."),	NULL, menu_rox_help, HELP_ABOUT, NULL},
    2.88 + {">" N_("Show Help Files"),	"F1", menu_rox_help, HELP_DIR, "<StockItem>", GTK_STOCK_HELP},
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/rox-filer/stuff/rox-filer	Sun Jul 06 16:49:01 2008 +0200
     3.3 @@ -0,0 +1,6 @@
     3.4 +#!/bin/sh
     3.5 +
     3.6 +APP_DIR="/usr/share/rox-filer/"
     3.7 +export APP_DIR
     3.8 +
     3.9 +/usr/share/rox-filer/rox-filer $@
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/rox-filer/stuff/rox-filer.desktop	Sun Jul 06 16:49:01 2008 +0200
     4.3 @@ -0,0 +1,11 @@
     4.4 +[Desktop Entry]
     4.5 +Encoding=UTF-8
     4.6 +Name=rox-filer
     4.7 +Name[fr]=gestionnaire de fichiers rox
     4.8 +Exec=rox-filer %F
     4.9 +Icon=pcmanfm
    4.10 +StartupNotify=true
    4.11 +Type=Application
    4.12 +Terminal=false
    4.13 +MimeType=x-directory/normal;inode/directory;
    4.14 +Categories=Application;System;Utility;Core;GTK;
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/rox-filer/stuff/rox-open-folder-menu.sh	Sun Jul 06 16:49:01 2008 +0200
     5.3 @@ -0,0 +1,25 @@
     5.4 +#!/bin/sh
     5.5 +#
     5.6 +# Openbox pipe menu to launch rox-filer using GTK bookmarks.
     5.7 +#
     5.8 +
     5.9 +echo '<openbox_pipe_menu>'
    5.10 +
    5.11 +# Home
    5.12 +echo '<item label="Home">'
    5.13 +echo '<action name="Execute"><execute>'
    5.14 +echo "rox-filer ~"
    5.15 +echo '</execute></action></item>'
    5.16 +
    5.17 +
    5.18 +
    5.19 +# GTK bookmarks
    5.20 +for dir in `sed 's/[ ][^ ]*$//' .gtk-bookmarks | sed 's!file://!!'`
    5.21 +do
    5.22 +	echo '<item label="'`basename $dir`'">'
    5.23 +	echo '<action name="Execute"><execute>'
    5.24 +	echo "rox-filer $dir"
    5.25 +	echo '</execute></action></item>'
    5.26 +done
    5.27 +
    5.28 +echo '</openbox_pipe_menu>'