system/pcmanfm: Updated for version 20110316_9c4603d

Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
ponce 2011-03-31 15:41:06 -05:00 committed by Robby Workman
parent bc6ec6cfd3
commit cbe0a05b49
4 changed files with 44 additions and 12 deletions

View file

@ -1,9 +1,10 @@
PCManFM is an extremely fast and lightweight GTK+ based file manager which
features tabbed browsing and a user-friendly interface.
This needs libfm; available from http://slackbuilds.org
PCManFM is an extremely fast and lightweight GTK+ based file manager
which features tabbed browsing and a user-friendly interface.
To view icons on PCMan File Manager, include this line to your
$HOME/.gtkrc-2.0
$HOME/.gtkrc-2.0: gtk-icon-theme-name="Tango"
gtk-icon-theme-name="Tango"
pcmanfm warns by default when used by root: you can disable the warning
passing a parameter to the build script, BEND_ME_OVER=kthxbai
This requires libfm.

View file

@ -0,0 +1,23 @@
diff -Naur pcmanfm-20101129_0f075cf.orig/src/main-win.c pcmanfm-20101129_0f075cf/src/main-win.c
--- pcmanfm-20101129_0f075cf.orig/src/main-win.c 2010-11-29 15:11:45.000000000 +0100
+++ pcmanfm-20101129_0f075cf/src/main-win.c 2010-12-03 11:05:46.000000000 +0100
@@ -550,19 +550,6 @@
/* the location bar */
self->location = fm_path_entry_new();
g_signal_connect(self->location, "activate", on_location_activate, self);
- if(geteuid() == 0) /* if we're using root, give the location entry a different color */
- {
- GtkStyle* style = gtk_rc_get_style_by_paths(
- gtk_settings_get_for_screen(gtk_widget_get_screen(self->location)),
- "gtk-tooltip", NULL, G_TYPE_NONE);
- if(style)
- {
- gtk_widget_modify_base(self->location, GTK_STATE_NORMAL, &style->bg[GTK_STATE_NORMAL]);
- gtk_widget_modify_fg(self->location, GTK_STATE_NORMAL, &style->fg[GTK_STATE_NORMAL]);
- gtk_entry_set_icon_from_stock(GTK_ENTRY(self->location), GTK_ENTRY_ICON_PRIMARY, GTK_STOCK_DIALOG_WARNING);
- }
- gtk_entry_set_icon_tooltip_text(GTK_ENTRY(self->location), GTK_ENTRY_ICON_PRIMARY, _("You are in super user mode"));
- }
toolitem = gtk_tool_item_new();
gtk_container_add( GTK_CONTAINER(toolitem), self->location );

View file

@ -24,7 +24,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=pcmanfm
VERSION=0.9.7
VERSION=20110316_9c4603d
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@ -63,7 +63,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
tar xvf $CWD/$PRGNAM-$VERSION.tar.?z
cd $PRGNAM-$VERSION
chown -R root:root .
@ -73,6 +73,13 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
# if you want disable root use warning
if [ "$BEND_ME_OVER" = "kthxbai" ]; then
patch -p1 < $CWD/norootwarning.patch
fi
sh autogen.sh
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
@ -80,10 +87,11 @@ CXXFLAGS="$SLKCFLAGS" \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
--disable-debug \
--build=$ARCH-slackware-linux
make
make install DESTDIR=$PKG
make install-strip DESTDIR=$PKG
# A minor polish
sed -i 's/Name=File\ Manager/Name=PCMan\ File\ Manager/' $PKG/usr/share/applications/pcmanfm.desktop

View file

@ -1,8 +1,8 @@
PRGNAM="pcmanfm"
VERSION="0.9.7"
VERSION="20110316_9c4603d"
HOMEPAGE="http://pcmanfm.sourceforge.net"
DOWNLOAD="http://downloads.sourceforge.net/pcmanfm/pcmanfm-0.9.7.tar.gz"
MD5SUM="f433a61484da10ed3382c1799169abd6"
DOWNLOAD="http://ponce.cc/slackware/sources/repo/lxde/pcmanfm-20110316_9c4603d.tar.xz"
MD5SUM="0b3ce79e27ad0c8e6db58861750f0eb7"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="ponce"