[general] name=pcmanfm short-description=PCMan lightweight File Manager homepage-url=http://wiki.lxde.org/en/PCManFM long-description= PCManFM is a file manager developed by Hong Jen Yee from Taiwan which is meant to be a replacement for Nautilus, Konqueror and Thunar. It is the standard file manager in LXDE PCManFM is intended to follow the specifications given by Freedesktop.org for interoperability in free software. [template] work_dir=@{build.work_dir} source_dir=@{build.work_dir}/${component} #build_dir=@{BUILD_SCRIPT.build_dir}/${component} build_dir=@{build.work_dir}/build/${component} [module] compiler=none category=tool license-type=gpl module=@{general.version} [BUILD_SCRIPT] init= module purge url_pcmanfm=@{general.download-url-pcmanfm} url_libfm=@{general.download-url-libfm} url_menucache=@{general.download-url-menucache} url_lxdecommon=@{general.download-url-lxdecommon} conf_lxdecommon=@{general.configure_flags-lxdecommon} export PKG_CONFIG_PATH=@{install_dir}/lib/pkgconfig/ export PATH=@{install_dir}/bin:$PATH export LD_LIBRARY_PATH=@{install_dir}/bin:$LD_LIBRARY_PATH export CFLAGS=-I@{install_dir}/include downloaded_file=@{computed_download_file_new} actual_download_url=${DURL} configure_flags=${CONF} download= @{download_dummy} mkdir -p @{build.work_dir} for component in lxdecommon menucache libfm pcmanfm ; do echo "downloading component " ${component} eval DURL=\$url_${component} @{download_tar} done configure=@{multipass_warning} make=@{multipass_warning} install= rm -rf @{install_dir} component=libfm CONF="--with-extra-only" echo "installing ${component}" echo "configure in @{template.source_dir} with addtitional flags @{configure_flags}" @{configure_outsource} @{make_outsource} make @{parallel_make} install for component in lxdecommon menucache libfm pcmanfm ; do eval CONF=\$conf_${component} echo "installing ${component}" echo "configure in @{template.source_dir} with addtitional flags @{configure_flags}" @{configure_outsource} @{make_outsource} make @{parallel_make} install done #configure pcmanfm to show fluxbox menu sed -i 's@show_wm_menu=0@show_wm_menu=1@' @{install_dir}/etc/xdg/pcmanfm/default/pcmanfm.conf #add default applications entry for pcmanfm overriding for system win manager echo -e "[Default Applications]\ninode/directory=pcmanfm.desktop\n" > @{install_dir}/share/applications/defaults.list [MODULEFILE] prepend_path.PATH=prepend-path prepend_path.LD_LIBRARY_PATH=prepend-path prepend_path.MANPATH= #this is required for setting default config to files installed in the rigght place #see http://standards.freedesktop.org/basedir-spec/latest/ar01s03.html if { ! [info exists env(XDG_CONFIG_DIRS)] } { setenv XDG_CONFIG_DIRS "/etc/xdg" } prepend-path XDG_CONFIG_DIRS "@{install_dir}/etc/xdg" if { ! [info exists env(XDG_DATA_DIRS)] } { setenv XDG_DATA_DIRS "/usr/local/share/:/usr/share/" } prepend-path XDG_DATA_DIRS "@{install_dir}/share" prepend-path