diff options
author | ponce <matteo.bernardini@gmail.com> | 2011-03-31 15:41:06 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2011-03-31 15:41:06 -0500 |
commit | cbe0a05b49e54fac496303c12f7d82bb2fd59de7 (patch) | |
tree | a035a1fbd4df7924d90e4a7d4e61547cb881b493 /system | |
parent | bc6ec6cfd3fed8462b03a7767b661d1970c467cf (diff) |
system/pcmanfm: Updated for version 20110316_9c4603d
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'system')
-rw-r--r-- | system/pcmanfm/README | 13 | ||||
-rw-r--r-- | system/pcmanfm/norootwarning.patch | 23 | ||||
-rw-r--r-- | system/pcmanfm/pcmanfm.SlackBuild | 14 | ||||
-rw-r--r-- | system/pcmanfm/pcmanfm.info | 6 |
4 files changed, 44 insertions, 12 deletions
diff --git a/system/pcmanfm/README b/system/pcmanfm/README index 60e4bb81512f4..befd2ac60ce2a 100644 --- a/system/pcmanfm/README +++ b/system/pcmanfm/README @@ -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" + +pcmanfm warns by default when used by root: you can disable the warning +passing a parameter to the build script, BEND_ME_OVER=kthxbai -gtk-icon-theme-name="Tango" +This requires libfm. diff --git a/system/pcmanfm/norootwarning.patch b/system/pcmanfm/norootwarning.patch new file mode 100644 index 0000000000000..bb9bb03c9440e --- /dev/null +++ b/system/pcmanfm/norootwarning.patch @@ -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 ); diff --git a/system/pcmanfm/pcmanfm.SlackBuild b/system/pcmanfm/pcmanfm.SlackBuild index 56d28d8c9de24..b8d61e7c86d0e 100644 --- a/system/pcmanfm/pcmanfm.SlackBuild +++ b/system/pcmanfm/pcmanfm.SlackBuild @@ -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 diff --git a/system/pcmanfm/pcmanfm.info b/system/pcmanfm/pcmanfm.info index 53e4e25ce0699..83038d7f8b407 100644 --- a/system/pcmanfm/pcmanfm.info +++ b/system/pcmanfm/pcmanfm.info @@ -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" |