diff options
author | Pierre Cazenave <pwcazenave {at} gmail {dot} com> | 2011-06-20 11:02:05 -0500 |
---|---|---|
committer | Niels Horn <niels.horn@slackbuilds.org> | 2011-07-14 21:59:28 -0300 |
commit | d8015f6862da4ea645d58776fa1244ada09c5411 (patch) | |
tree | 11c078519d01cb6b2e204b52c564716e27a07b9f | |
parent | 40d2cb3236f80f1a7296b4356e819708dde5a4ef (diff) | |
download | slackbuilds-d8015f6862da4ea645d58776fa1244ada09c5411.tar.gz |
system/fdupes: Updated for version 1.50_PR2.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
-rw-r--r-- | system/fdupes/fdupes.SlackBuild | 38 | ||||
-rw-r--r-- | system/fdupes/fdupes.info | 10 | ||||
-rw-r--r-- | system/fdupes/slack-desc | 2 |
3 files changed, 22 insertions, 28 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 diff --git a/system/fdupes/fdupes.info b/system/fdupes/fdupes.info index 893e4a75f0..f9854ae9b0 100644 --- a/system/fdupes/fdupes.info +++ b/system/fdupes/fdupes.info @@ -1,10 +1,10 @@ PRGNAM="fdupes" -VERSION="1.40" -HOMEPAGE="http://netdial.caribe.net/~adrian2/fdupes.html" -DOWNLOAD="http://netdial.caribe.net/~adrian2/programs/fdupes-1.40.tar.gz" -MD5SUM="11de9ab4466089b6acbb62816b30b189" +VERSION="1.50-PR2" +HOMEPAGE="http://code.google.com/p/fdupes/" +DOWNLOAD="http://fdupes.googlecode.com/files/fdupes-1.50-PR2.tar.gz" +MD5SUM="a4f0de2d9a79efce3d712d6520e58c7f" DOWNLOAD_x86_64="" MD5SUM_x86_64="" MAINTAINER="Pierre Cazenave" EMAIL="pwcazenave {at} gmail {dot} com" -APPROVED="dsomero" +APPROVED="rworkman" diff --git a/system/fdupes/slack-desc b/system/fdupes/slack-desc index d4e388a2f5..636c5e588c 100644 --- a/system/fdupes/slack-desc +++ b/system/fdupes/slack-desc @@ -11,7 +11,7 @@ fdupes: fdupes: FDUPES is a program for identifying or deleting duplicate files fdupes: residing within specified directories. fdupes: -fdupes: Homepage: http://premium.caribe.net/~adrian2/fdupes.html +fdupes: Homepage: http://code.google.com/p/fdupes/ fdupes: fdupes: fdupes: |