summaryrefslogtreecommitdiff
path: root/system/fdupes/fdupes.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/fdupes/fdupes.SlackBuild')
-rw-r--r--system/fdupes/fdupes.SlackBuild13
1 files changed, 9 insertions, 4 deletions
diff --git a/system/fdupes/fdupes.SlackBuild b/system/fdupes/fdupes.SlackBuild
index cbc26afc2b..15815e2139 100644
--- a/system/fdupes/fdupes.SlackBuild
+++ b/system/fdupes/fdupes.SlackBuild
@@ -1,10 +1,10 @@
#!/bin/sh
# Slackware build script for duplicate file finder fdupes
-#
+
# 17/12/2008 - Original script.
# 28/05/2009 - Updated for Slackware64 and general tidy up.
-#
+
# Copyright 2008, 2009 Pierre Cazenave <pwcazenave {at} gmail [dot] com>
# All rights reserved.
#
@@ -24,7 +24,6 @@
# 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=fdupes
VERSION=1.40
@@ -39,10 +38,13 @@ 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"
fi
set -e
@@ -56,6 +58,9 @@ cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
+# Use our CFLAGS
+sed -i "s%-Wall%-Wall $SLKCFLAGS%" Makefile
+
# make the program directories since the Makefile doesn't
mkdir -p $PKG/usr/man/man1 $PKG/usr/bin
@@ -81,4 +86,4 @@ 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
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}