aboutsummaryrefslogtreecommitdiff
path: root/system/catfish
diff options
context:
space:
mode:
authorFrank Caraballo <fecaraballo{at}gmail{dot}com>2010-05-11 20:01:54 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-11 20:01:54 +0200
commit3347e10b1bfd29ca824068e069b681c33e8a6476 (patch)
treeebb7936b1683ad318a9e412944a432e5551221b0 /system/catfish
parent811c3acd925c0da0ab6bf2cd00ad0b936f409381 (diff)
system/catfish: Added to 12.0 repository
Diffstat (limited to 'system/catfish')
-rw-r--r--system/catfish/README8
-rw-r--r--system/catfish/catfish.SlackBuild86
-rw-r--r--system/catfish/catfish.info8
-rw-r--r--system/catfish/catfish_Makefile.diff20
-rw-r--r--system/catfish/doinst.sh3
-rw-r--r--system/catfish/slack-desc19
6 files changed, 144 insertions, 0 deletions
diff --git a/system/catfish/README b/system/catfish/README
new file mode 100644
index 0000000000000..131c50cc83f11
--- /dev/null
+++ b/system/catfish/README
@@ -0,0 +1,8 @@
+Catfish is a handy file searching tool for linux and unix.
+Basically, it is a frontend for different search engines (daemons) which
+provides a unified interface. The interface is intentionally lightweight
+and simple, using only GTK+ 2. You can configure it to your needs by
+using several command line options.
+
+pygtk (available at SlackBuilds.org) is required to build this package,
+nd pyxdg (also available here) is an optional dependency.
diff --git a/system/catfish/catfish.SlackBuild b/system/catfish/catfish.SlackBuild
new file mode 100644
index 0000000000000..a184c0686055c
--- /dev/null
+++ b/system/catfish/catfish.SlackBuild
@@ -0,0 +1,86 @@
+#!/bin/sh
+
+# Slackware build script for Catfish
+
+# Copyright 2008 Frank Caraballo <fecaraballo{at}gmail{dot}com>
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+PRGNAM=catfish
+VERSION=0.3
+ARCH=${ARCH:-i486}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+fi
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP || exit 1
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1
+cd $PRGNAM-$VERSION || exit 1
+
+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 {} \;
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ || exit 1
+
+# Fix Makefile symlinks to not include DESTDIR:
+patch -p0 < $CWD/catfish_Makefile.diff || exit 1
+
+make || exit 1
+make install DESTDIR=$PKG || exit 1
+
+( cd $PKG
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+)
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a TODO $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+# Move auto-installed doc files to correct location:
+mv $PKG/usr/share/doc/* $PKG/usr/doc/$PRGNAM-$VERSION
+rm -rf $PKG/usr/share/doc
+find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 644 {} \;
+
+mkdir -p $PKG/install
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n -p $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
diff --git a/system/catfish/catfish.info b/system/catfish/catfish.info
new file mode 100644
index 0000000000000..2caf03751dd2d
--- /dev/null
+++ b/system/catfish/catfish.info
@@ -0,0 +1,8 @@
+PRGNAM="catfish"
+VERSION="0.3"
+HOMEPAGE="http://software.twotoasts.de/?page=catfish"
+DOWNLOAD="http://software.twotoasts.de/media/catfish/catfish-0.3.tar.gz"
+MD5SUM="6f5fed0beaac45c2c7d77aa9b5f1aac0"
+MAINTAINER="Frank Caraballo"
+EMAIL="fecaraballo{at}gmail{dot}com"
+APPROVED="rworkman"
diff --git a/system/catfish/catfish_Makefile.diff b/system/catfish/catfish_Makefile.diff
new file mode 100644
index 0000000000000..42a43b9c19a42
--- /dev/null
+++ b/system/catfish/catfish_Makefile.diff
@@ -0,0 +1,20 @@
+--- Makefile.orig 2008-03-18 12:50:03.638894634 -0700
++++ Makefile 2008-03-18 12:50:55.641857937 -0700
+@@ -23,7 +23,7 @@
+
+ install -d $(DESTDIR)/$(PREFIX)/share/pixmaps
+ install $(APPNAME).svg $(DESTDIR)/$(PREFIX)/share/pixmaps
+- ln -sf $(DESTDIR)/$(PREFIX)/share/pixmaps/$(APPNAME).svg $(DESTDIR)/$(PREFIX)/share/$(APPNAME)/$(APPNAME).svg
++ ln -sf $(PREFIX)/share/pixmaps/$(APPNAME).svg $(DESTDIR)/$(PREFIX)/share/$(APPNAME)/$(APPNAME).svg
+
+ install -d $(DESTDIR)/$(PREFIX)/share/doc
+ install AUTHORS $(DESTDIR)/$(PREFIX)/share/doc
+@@ -36,7 +36,7 @@
+ install --mode=644 $(APPNAME).desktop $(DESTDIR)/$(PREFIX)/share/applications
+
+ cp -rf locale $(DESTDIR)/$(PREFIX)/share
+- ln -sf $(DESTDIR)/$(PREFIX)/share/locale $(DESTDIR)/$(PREFIX)/share/$(APPNAME)/locale
++ ln -sf $(PREFIX)/share/locale $(DESTDIR)/$(PREFIX)/share/$(APPNAME)/locale
+
+ uninstall:
+ rm -f $(DESTDIR)/$(PREFIX)/share/applications/$(APPNAME).desktop
diff --git a/system/catfish/doinst.sh b/system/catfish/doinst.sh
new file mode 100644
index 0000000000000..140e33222297c
--- /dev/null
+++ b/system/catfish/doinst.sh
@@ -0,0 +1,3 @@
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications
+fi
diff --git a/system/catfish/slack-desc b/system/catfish/slack-desc
new file mode 100644
index 0000000000000..e81a55dc7a343
--- /dev/null
+++ b/system/catfish/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 ':'.
+
+ |-----handy-ruler-----------------------------------------------------|
+catfish: Catfish (File Search Frontend)
+catfish:
+catfish: Catfish is a handy file searching tool for linux and unix.
+catfish: Basically it is a frontend for different search engines
+catfish: (daemons) which provides a unified interface. The interface
+catfish: is intentionally lightweight and simple, using only GTK+ 2.
+catfish: You can configure it to your needs by using several command
+catfish: line options.
+catfish:
+catfish: Homepage: http://software.twotoasts.de/?page=catfish
+catfish: