summaryrefslogtreecommitdiff
path: root/system/fdupes/fdupes.SlackBuild
diff options
context:
space:
mode:
authorPierre Cazenave <pwcazenave {at} gmail {dot} com>2011-06-20 11:02:05 -0500
committerNiels Horn <niels.horn@slackbuilds.org>2011-07-14 21:59:28 -0300
commitd8015f6862da4ea645d58776fa1244ada09c5411 (patch)
tree11c078519d01cb6b2e204b52c564716e27a07b9f /system/fdupes/fdupes.SlackBuild
parent40d2cb3236f80f1a7296b4356e819708dde5a4ef (diff)
downloadslackbuilds-d8015f6862da4ea645d58776fa1244ada09c5411.tar.gz
system/fdupes: Updated for version 1.50_PR2.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'system/fdupes/fdupes.SlackBuild')
-rw-r--r--system/fdupes/fdupes.SlackBuild38
1 files changed, 16 insertions, 22 deletions
diff --git a/system/fdupes/fdupes.SlackBuild b/system/fdupes/fdupes.SlackBuild
index d166d90312..7730e1c804 100644
--- a/system/fdupes/fdupes.SlackBuild
+++ b/system/fdupes/fdupes.SlackBuild
@@ -1,11 +1,12 @@
-#!/bin/sh
+#!/bin/bash
-# Slackware build script for duplicate file finder fdupes
+# Slackware build script for duplicate file finder fdupes.
# 17/12/2008 - Original script.
# 28/05/2009 - Updated for Slackware64 and general tidy up.
+# 19/06/2011 - Updated to version 1.50-PR2
-# Copyright 2008, 2009 Pierre Cazenave <pwcazenave {at} gmail [dot] com>
+# Copyright 2008-2011 Pierre Cazenave <pwcazenave {at} gmail [dot] com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -26,16 +27,16 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=fdupes
-VERSION=1.40
-BUILD=${BUILD:-2}
+VERSION=1.50_PR2
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-# Automatically determine the architecture we're building on:
+SRCVERS=$(printf $VERSION | tr _ -)
+
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
@@ -64,29 +65,22 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
-tar -xvf $CWD/$PRGNAM-$VERSION.tar.gz
-cd $PRGNAM-$VERSION
+rm -rf $PRGNAM-$SRCVERS
+tar -xvf $CWD/$PRGNAM-$SRCVERS.tar.gz
+cd $PRGNAM-$SRCVERS
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
+# Fix apparent typo in Makefile
+sed -i 's/-$(MKDIR)/$(MKDIR)/g' Makefile
-make install \
- INSTALLDIR=$PKG/usr/bin \
- MANPAGEDIR=$PKG/usr/man
+make install PREFIX=$PKG/usr COMPILER_OPTIONS="$SLKCFLAGS"
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-( cd $PKG/usr/man
- find . -type f -exec gzip -9 {} \;
- for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
-)
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a CHANGES CONTRIBUTORS INSTALL README TODO $PKG/usr/doc/$PRGNAM-$VERSION