summaryrefslogtreecommitdiffstats
path: root/system/rodent
diff options
context:
space:
mode:
author Roberto Neri <rneri@libero.it>2011-11-16 17:28:33 -0600
committer Robby Workman <rworkman@slackbuilds.org>2011-11-26 09:08:10 -0600
commitf29b683bbcf64b8cbda635ea67715fa7b82d9dad (patch)
tree851a0a612c269bca8bfdbe007e61ec358c86cd1d /system/rodent
parent8d045ed844d67b6446cd4a560ba1b6e784a75057 (diff)
downloadslackbuilds-f29b683bbcf64b8cbda635ea67715fa7b82d9dad.tar.gz
slackbuilds-f29b683bbcf64b8cbda635ea67715fa7b82d9dad.tar.xz
system/rodent: Added (Rodent Filemanager)
Signed-off-by: Erik Hanson <erik@slackbuilds.org>
Diffstat (limited to 'system/rodent')
-rw-r--r--system/rodent/README7
-rw-r--r--system/rodent/doinst.sh10
-rw-r--r--system/rodent/rodent-4.7.4.diff30
-rw-r--r--system/rodent/rodent.SlackBuild107
-rw-r--r--system/rodent/rodent.info10
-rw-r--r--system/rodent/slack-desc19
6 files changed, 183 insertions, 0 deletions
diff --git a/system/rodent/README b/system/rodent/README
new file mode 100644
index 0000000000..c27977d023
--- /dev/null
+++ b/system/rodent/README
@@ -0,0 +1,7 @@
+Rodent evolves from Xffm, Xfce's old file manager.
+It is a fast, small and powerful file manager but it could also be
+regarded, as the project homepage suggests, as a graphic shell.
+
+All plugins are enabled, since they haven't extra dependencies, except
+for the gvfs plugin, which is disabled by default but can be enabled by
+passing GVFS=yes to the script, e.g. GVFS=yes ./rodent.SlackBuild
diff --git a/system/rodent/doinst.sh b/system/rodent/doinst.sh
new file mode 100644
index 0000000000..1f8ff67ded
--- /dev/null
+++ b/system/rodent/doinst.sh
@@ -0,0 +1,10 @@
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
+fi
+
+if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
+ if [ -x /usr/bin/gtk-update-icon-cache ]; then
+ /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1
+ fi
+fi
+
diff --git a/system/rodent/rodent-4.7.4.diff b/system/rodent/rodent-4.7.4.diff
new file mode 100644
index 0000000000..6b190a2663
--- /dev/null
+++ b/system/rodent/rodent-4.7.4.diff
@@ -0,0 +1,30 @@
+diff -ur rodent-4.7.4.orig//configure rodent-4.7.4/configure
+--- rodent-4.7.4.orig//configure 2011-10-17 23:36:00.000000000 +0200
++++ rodent-4.7.4/configure 2011-11-15 10:59:49.850000007 +0100
+@@ -1587,7 +1587,7 @@
+ --disable-nls do not use Native Language Support
+ --disable-largefile omit support for large files
+ --enable-icontheme Include rodent icon theme
+- --enable-gvfs Turn on gvfs plugin
++ --enable-gvfsplugin Turn on gvfs plugin
+ --enable-propertiesplugin Turn on properties dialog plugin
+ --enable-fgrplugin Turn on fgr (find-grep search tool) plugin
+ --enable-mimeplugin Turn on mimetype determination plugin
+@@ -15236,7 +15236,7 @@
+ # Check whether --enable-fgrplugin was given.
+ if test "${enable_fgrplugin+set}" = set; then :
+ enableval=$enable_fgrplugin; case "${enableval}" in
+- yes) fgrplugingin=true ;;
++ yes) fgrplugin=true ;;
+ no) fgrplugin=false ;;
+ *) as_fn_error "bad value ${enableval} for --enable-fgrplugin (use either yes or no)" "$LINENO" 5 ;;
+ esac
+@@ -15342,7 +15342,7 @@
+ # Check whether --enable-fstabplugin was given.
+ if test "${enable_fstabplugin+set}" = set; then :
+ enableval=$enable_fstabplugin; case "${enableval}" in
+- yes) fstabplugingins=true ;;
++ yes) fstabplugin=true ;;
+ no) fstabplugin=false ;;
+ *) as_fn_error "bad value ${enableval} for --enable-fstabplugin (use either yes or no)" "$LINENO" 5 ;;
+ esac
diff --git a/system/rodent/rodent.SlackBuild b/system/rodent/rodent.SlackBuild
new file mode 100644
index 0000000000..99737aef8d
--- /dev/null
+++ b/system/rodent/rodent.SlackBuild
@@ -0,0 +1,107 @@
+#!/bin/sh
+
+# Slackware build script for rodent
+
+# Written by Roberto Neri <rneri@libero.it>
+
+PRGNAM=rodent
+VERSION=${VERSION:-4.7.4}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i486 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
+
+# All plugins are enabled, since they haven't extra dependencies, except
+# for the gvfs plugin, which is disabled by default but can be enabled
+# by passing GVFS=yes to the script
+GVFS=${GVFS:-no}
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
+cd $PRGNAM-$VERSION
+chown -R root:root .
+find . \
+ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
+ -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
+ -exec chmod 644 {} \;
+
+# Fix ./configure typos
+patch -p1 < $CWD/$PRGNAM-$VERSION.diff
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --mandir=/usr/man \
+ --docdir=/usr/doc/$PRGNAM-$VERSION \
+ --enable-icontheme=yes \
+ --enable-gvfsplugin=$GVFS \
+ --enable-propertiesplugin=yes \
+ --enable-fgrplugin=yes \
+ --enable-mimeplugin=yes \
+ --enable-iconsplugin=yes \
+ --enable-comboboxplugin=yes \
+ --enable-settingsplugin=yes \
+ --enable-fstabplugin=yes \
+ --enable-psplugin=yes \
+ --enable-dotdesktopplugin=yes \
+ --build=$ARCH-slackware-linux
+
+make
+
+# Note: the manual (RTFM.pdf) is installed in /usr/share/doc/rfm-Gamma
+# This could be overridden by passing docdir=/usr/doc/$PRGNAM-$VERSION
+# to "make install", but that would break the "Help" function, so it's
+# better to leave it in its non-standard location
+make install DESTDIR=$PKG
+
+find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
+ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ AUTHORS ChangeLog COPYING INSTALL NEWS README TODO \
+ $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/system/rodent/rodent.info b/system/rodent/rodent.info
new file mode 100644
index 0000000000..8fc9d7cea8
--- /dev/null
+++ b/system/rodent/rodent.info
@@ -0,0 +1,10 @@
+PRGNAM="rodent"
+VERSION="4.7.4"
+HOMEPAGE="http://rodent.xffm.org/"
+DOWNLOAD="http://downloads.sourceforge.net/project/xffm/4.7.4/rodent-4.7.4.tar.bz2"
+MD5SUM="6f1d8ffbee134ac859fd1084a2c8d397"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+MAINTAINER="Roberto Neri"
+EMAIL="rneri@libero.it"
+APPROVED="Erik Hanson"
diff --git a/system/rodent/slack-desc b/system/rodent/slack-desc
new file mode 100644
index 0000000000..6ec28154bd
--- /dev/null
+++ b/system/rodent/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description. Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in. You must
+# make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+rodent: rodent (Rodent Filemanager)
+rodent:
+rodent: Rodent evolves from Xffm, Xfce's old file manager.
+rodent: It is a fast, small and powerful file manager but it could also be
+rodent: regarded, as the project homepage suggests, as a graphic shell.
+rodent:
+rodent:
+rodent:
+rodent:
+rodent: Homepage: http://rodent.xffm.org/
+rodent: