wok-current rev 11885

pcmanfm2: Improve package integration
author Christophe Lincoln <pankso@slitaz.org>
date Tue Feb 28 14:35:10 2012 +0100 (2012-02-28)
parents afa1d6d17c83
children 80044994b6f9
files pcmanfm2/receipt pcmanfm2/stuff/applications/pcmanfm-pref.desktop pcmanfm2/stuff/applications/pcmanfm.desktop pcmanfm2/stuff/default/pcmanfm.conf
line diff
     1.1 --- a/pcmanfm2/receipt	Tue Feb 28 14:32:34 2012 +0100
     1.2 +++ b/pcmanfm2/receipt	Tue Feb 28 14:35:10 2012 +0100
     1.3 @@ -1,39 +1,34 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="pcmanfm2"
     1.7 -VERSION="0.9.8"
     1.8 +VERSION="0.9.10"
     1.9  CATEGORY="system-tools"
    1.10  SHORT_DESC="Light and easy to use file manager."
    1.11  MAINTAINER="pankso@slitaz.org"
    1.12 -DEPENDS="glibc-base glib libgio util-linux-ng-uuid libxcb xcb-util expat \
    1.13 -zlib fontconfig freetype gtk+ atk cairo pango pixman libpng gamin \
    1.14 -startup-notification dbus dbus-glib hal xorg-libICE xorg-libSM xorg-libX11 \
    1.15 -xorg-libXau xorg-libXcomposite xorg-libXcursor xorg-libXdamage xorg-libXdmcp \
    1.16 -xorg-libXext xorg-libXfixes xorg-libXinerama xorg-libXrender libfm"
    1.17 -BUILD_DEPENDS="gtk+-dev gamin-dev gamin shared-mime-info intltool hal-dev \
    1.18 -dbus-glib-dev dbus-dev startup-notification-dev libxcb-dev xcb-util-dev \
    1.19 -libfm libfm-dev menu-cache-dev expat-dev"
    1.20  SOURCE="pcmanfm"
    1.21  TARBALL="$SOURCE-$VERSION.tar.gz"
    1.22  WEB_SITE="http://pcmanfm.sourceforge.net/"
    1.23  WGET_URL="$SF_MIRROR/$SOURCE/files/$TARBALL"
    1.24  
    1.25 +DEPENDS="glibc-base glib libgio util-linux-ng-uuid libxcb xcb-util expat \
    1.26 +zlib fontconfig freetype gtk+ startup-notification dbus dbus-glib libfm"
    1.27 +BUILD_DEPENDS="gtk+-dev shared-mime-info intltool dbus-glib-dev dbus-dev \
    1.28 +startup-notification-dev libxcb-dev xcb-util-dev libfm-dev menu-cache-dev \
    1.29 +expat-dev"
    1.30 +
    1.31  # Rules to configure and make the package.
    1.32  compile_rules()
    1.33  {
    1.34  	cd $src
    1.35 -	./configure \
    1.36 -		--prefix=/usr \
    1.37 -		--mandir=/usr/share/man \
    1.38 -		$CONFIGURE_ARGS &&
    1.39 -	make &&
    1.40 -	make DESTDIR=$PWD/_pkg install
    1.41 +	./configure $CONFIGURE_ARGS &&
    1.42 +	make && make install
    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
    1.49 -	cp -a $_pkg/usr/bin $fs/usr
    1.50 -	cp -a $_pkg/usr/share/pcmanfm $fs/usr/share
    1.51 +	mkdir -p $fs/usr/share $fs/etc/xdg/pcmanfm
    1.52 +	cp -a $install/usr/bin $fs/usr
    1.53 +	cp -a $install/usr/share/pcmanfm $fs/usr/share
    1.54 +	cp -a $stuff/default $fs/etc/xdg/pcmanfm
    1.55  }
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/pcmanfm2/stuff/applications/pcmanfm-pref.desktop	Tue Feb 28 14:35:10 2012 +0100
     2.3 @@ -0,0 +1,10 @@
     2.4 +[Desktop Entry]
     2.5 +Encoding=UTF-8
     2.6 +Name=Desktop Wallpaper
     2.7 +Name[fr]=Fond d'écran
     2.8 +Name[zh_CN]=桌面壁纸
     2.9 +Exec=pcmanfm --desktop-pref
    2.10 +Icon=preferences-desktop-wallpaper
    2.11 +Terminal=false
    2.12 +Type=Application
    2.13 +Categories=Settings;DesktopSettings;
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/pcmanfm2/stuff/applications/pcmanfm.desktop	Tue Feb 28 14:35:10 2012 +0100
     3.3 @@ -0,0 +1,14 @@
     3.4 +[Desktop Entry]
     3.5 +Encoding=UTF-8
     3.6 +Name=PCMan File Manager
     3.7 +Name[fr]=Gestionnaire de fichiers
     3.8 +Name[pt]=Gerenciador de Arquivos
     3.9 +Name[zh_CN]=PCMan 文件管理器
    3.10 +Name[zh_TW]=PCMan 檔案管理程式
    3.11 +Exec=pcmanfm %F
    3.12 +Icon=pcmanfm
    3.13 +StartupNotify=true
    3.14 +Type=Application
    3.15 +Terminal=false
    3.16 +MimeType=x-directory/normal;inode/directory;
    3.17 +Categories=Application;System;Utility;Core;GTK;
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/pcmanfm2/stuff/default/pcmanfm.conf	Tue Feb 28 14:35:10 2012 +0100
     4.3 @@ -0,0 +1,29 @@
     4.4 +[config]
     4.5 +bm_open_method=0
     4.6 +su_cmd=subox %s
     4.7 +
     4.8 +[volume]
     4.9 +mount_on_startup=1
    4.10 +mount_removable=1
    4.11 +autorun=1
    4.12 +
    4.13 +[desktop]
    4.14 +wallpaper_mode=1
    4.15 +wallpaper=/usr/share/images/slitaz-background.jpg
    4.16 +desktop_bg=#000000
    4.17 +desktop_fg=#ffffff
    4.18 +desktop_shadow=#000000
    4.19 +desktop_font=Sans 10
    4.20 +show_wm_menu=1
    4.21 +
    4.22 +[ui]
    4.23 +always_show_tabs=0
    4.24 +max_tab_chars=32
    4.25 +win_width=640
    4.26 +win_height=480
    4.27 +splitter_pos=150
    4.28 +side_pane_mode=1
    4.29 +view_mode=0
    4.30 +show_hidden=0
    4.31 +sort_type=0
    4.32 +sort_by=2