From 790ba4f85c846acab15b24dce9c17711e07ca9be Mon Sep 17 00:00:00 2001 From: Pierre Cazenave Date: Thu, 13 May 2010 00:40:13 +0200 Subject: system/fdupes: Updated for version 1.40 --- system/fdupes/fdupes.SlackBuild | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'system/fdupes/fdupes.SlackBuild') 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 # 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} -- cgit v1.2.3