diff options
author | titopoquito <titopoquito@cooltoad.com> | 2010-05-11 14:03:47 +0200 |
---|---|---|
committer | Eric Hameleers <alien@slackbuilds.org> | 2010-05-11 14:03:47 +0200 |
commit | 1dcd7db5a42d6df1dbc89f925991d02f9f0cd989 (patch) | |
tree | a730f487b47cc2d8fd9891cf2446041dea7ae1e3 /desktop/recoll/recoll.SlackBuild | |
parent | c0d21d2851f1f16362e28b7126558cc98418c818 (diff) | |
download | slackbuilds-1dcd7db5a42d6df1dbc89f925991d02f9f0cd989.tar.gz |
desktop/recoll: Initial import
Diffstat (limited to 'desktop/recoll/recoll.SlackBuild')
-rw-r--r-- | desktop/recoll/recoll.SlackBuild | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/desktop/recoll/recoll.SlackBuild b/desktop/recoll/recoll.SlackBuild new file mode 100644 index 0000000000..47956eeb99 --- /dev/null +++ b/desktop/recoll/recoll.SlackBuild @@ -0,0 +1,82 @@ +#!/bin/sh +# Slackware build script for recoll +# Copyright 2007 by titopoquito (titopoquito@cooltoad.com) +# Permission to use, copy, modify, and distribute this software for +# any purpose with or without fee is hereby granted, provided that +# the above copyright notice and this permission notice appear in all +# copies. +# +# THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED 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 AUTHORS AND COPYRIGHT HOLDERS AND THEIR +# CONTRIBUTORS 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. +# --------------------------------------------------------------------------- +# Modified by the SlackBuilds.org Project + +# Exit on most errors +set -e + +PRGNAM=recoll # replace with name of program +VERSION=1.8.1 # replace with version of program +ARCH=${ARCH:-i486} # this should not change +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} # the "_SBo" is required +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} # For consistency's sake, use this +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} # Drop the package in /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 +rm -rf $PRGNAM-$VERSION +tar -xvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION +chown -R root:root . +chmod -R u+w,go+r-w,a-s . + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var + +make +make install DESTDIR=$PKG + +# Fix the icon path in the .desktop file (Slackware 11.0 and earlier need it): +sed -i -e "s#^Icon=recoll-searchgui#Icon=/usr/share/icons/hicolor/48x48/apps/recoll-searchgui.png#" $PKG/usr/share/applications/recoll-searchgui.desktop + +( 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 +) + +( cd $PKG/usr/man + find . -type f -name "*.?" -exec gzip -9 {} \; +) + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a ChangeLog COPYING INSTALL README VERSION $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 + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz |