summaryrefslogtreecommitdiff
path: root/system/foremost/foremost.SlackBuild
diff options
context:
space:
mode:
authorLarry Hajali <larryhaja[at]gmail[dot]com>2010-08-30 06:22:33 -0500
committerErik Hanson <erik@slackbuilds.org>2010-08-30 07:49:51 -0500
commitd9208e907cf5c9e2eed4d06715efafc4b07a1e8a (patch)
tree8caa365edadaf611712f7b83152e27e93d3c8275 /system/foremost/foremost.SlackBuild
parentdb693573b325650f83ddc72c0cafe150ff2e2df4 (diff)
downloadslackbuilds-d9208e907cf5c9e2eed4d06715efafc4b07a1e8a.tar.gz
system/foremost: Updated for version 1.5.7.
Signed-off-by: Erik Hanson <erik@slackbuilds.org>
Diffstat (limited to 'system/foremost/foremost.SlackBuild')
-rw-r--r--system/foremost/foremost.SlackBuild19
1 files changed, 6 insertions, 13 deletions
diff --git a/system/foremost/foremost.SlackBuild b/system/foremost/foremost.SlackBuild
index 6fc6905ee0..13b654e3b8 100644
--- a/system/foremost/foremost.SlackBuild
+++ b/system/foremost/foremost.SlackBuild
@@ -3,16 +3,14 @@
# Written by Larry Hajali <larryhaja[at]gmail[dot]com>
PRGNAM=foremost
-VERSION=${VERSION:-1.5.6}
+VERSION=${VERSION:-1.5.7}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@@ -24,16 +22,12 @@ 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
set -e
@@ -52,15 +46,15 @@ find . \
-exec chmod 644 {} \;
# Set the $ARCH variable for the Makefile.
-sed -i "s|-O2|\$(CFLAGS)|" Makefile
+sed -i "s|-O2|$SLKCFLAGS|" Makefile
# Set location of configuration file.
-sed -i 's|\/usr\/local\/etc|\/etc|' config.c
-# Fix segfaults with broken jpeg headers.
+sed -i 's|/usr/local||' config.c
+# Fix segfaults with broken jpeg.
patch -p1 < $CWD/foremost-broken-jpeg.patch
# Make the directories.
mkdir -p $PKG/etc $PKG/usr/{man/man8,bin}
-make CFLAGS="$SLKCFLAGS"
+make
make install \
CONF=$PKG/etc \
MAN=$PKG/usr/man/man8 \
@@ -78,8 +72,7 @@ cp -a \
CHANGES README COPYRIGHT \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-# Remove executable priveleges from text files.
-chmod 0644 $PKG/usr/doc/$PRGNAM-$VERSION/*
+find $PKG/usr/doc -type f -exec chmod 0644 {} \;
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc