mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
system/fdupes: Updated for version 1.50_PR2.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
parent
40d2cb3236
commit
d8015f6862
3 changed files with 22 additions and 28 deletions
|
@ -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
|
||||
# Fix apparent typo in Makefile
|
||||
sed -i 's/-$(MKDIR)/$(MKDIR)/g' Makefile
|
||||
|
||||
# make the program directories since the Makefile doesn't
|
||||
mkdir -p $PKG/usr/man/man1 $PKG/usr/bin
|
||||
|
||||
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
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue