aboutsummaryrefslogtreecommitdiff
path: root/desktop/recoll/recoll.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/recoll/recoll.SlackBuild')
-rw-r--r--desktop/recoll/recoll.SlackBuild27
1 files changed, 13 insertions, 14 deletions
diff --git a/desktop/recoll/recoll.SlackBuild b/desktop/recoll/recoll.SlackBuild
index 47956eeb99100..010cae7eb3804 100644
--- a/desktop/recoll/recoll.SlackBuild
+++ b/desktop/recoll/recoll.SlackBuild
@@ -1,4 +1,5 @@
#!/bin/sh
+
# Slackware build script for recoll
# Copyright 2007 by titopoquito (titopoquito@cooltoad.com)
# Permission to use, copy, modify, and distribute this software for
@@ -19,20 +20,19 @@
# 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
+VERSION=1.8.1
+ARCH=${ARCH:-i486}
+BUILD=${BUILD:-2}
+TAG=${TAG:-_SBo}
-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
+TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
-OUTPUT=${OUTPUT:-/tmp} # Drop the package in /tmp
+OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
@@ -40,11 +40,13 @@ elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
fi
+set -e # Exit on most errors
+
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.gz
cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
@@ -59,11 +61,8 @@ CXXFLAGS="$SLKCFLAGS" \
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 "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
)