mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-24 10:02:29 +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.
|
# 17/12/2008 - Original script.
|
||||||
# 28/05/2009 - Updated for Slackware64 and general tidy up.
|
# 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.
|
# All rights reserved.
|
||||||
#
|
#
|
||||||
# Redistribution and use of this script, with or without modification, is
|
# Redistribution and use of this script, with or without modification, is
|
||||||
|
@ -26,16 +27,16 @@
|
||||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
PRGNAM=fdupes
|
PRGNAM=fdupes
|
||||||
VERSION=1.40
|
VERSION=1.50_PR2
|
||||||
BUILD=${BUILD:-2}
|
BUILD=${BUILD:-1}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
|
|
||||||
# Automatically determine the architecture we're building on:
|
SRCVERS=$(printf $VERSION | tr _ -)
|
||||||
|
|
||||||
if [ -z "$ARCH" ]; then
|
if [ -z "$ARCH" ]; then
|
||||||
case "$( uname -m )" in
|
case "$( uname -m )" in
|
||||||
i?86) ARCH=i486 ;;
|
i?86) ARCH=i486 ;;
|
||||||
arm*) ARCH=arm ;;
|
arm*) ARCH=arm ;;
|
||||||
# Unless $ARCH is already set, use uname -m for all other archs:
|
|
||||||
*) ARCH=$( uname -m ) ;;
|
*) ARCH=$( uname -m ) ;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
@ -64,29 +65,22 @@ set -e
|
||||||
rm -rf $PKG
|
rm -rf $PKG
|
||||||
mkdir -p $TMP $PKG $OUTPUT
|
mkdir -p $TMP $PKG $OUTPUT
|
||||||
cd $TMP
|
cd $TMP
|
||||||
rm -rf $PRGNAM-$VERSION
|
rm -rf $PRGNAM-$SRCVERS
|
||||||
tar -xvf $CWD/$PRGNAM-$VERSION.tar.gz
|
tar -xvf $CWD/$PRGNAM-$SRCVERS.tar.gz
|
||||||
cd $PRGNAM-$VERSION
|
cd $PRGNAM-$SRCVERS
|
||||||
chown -R root:root .
|
chown -R root:root .
|
||||||
chmod -R u+w,go+r-w,a-s .
|
chmod -R u+w,go+r-w,a-s .
|
||||||
|
|
||||||
# Use our CFLAGS
|
# Fix apparent typo in Makefile
|
||||||
sed -i "s%-Wall%-Wall $SLKCFLAGS%" Makefile
|
sed -i 's/-$(MKDIR)/$(MKDIR)/g' Makefile
|
||||||
|
|
||||||
# make the program directories since the Makefile doesn't
|
make install PREFIX=$PKG/usr COMPILER_OPTIONS="$SLKCFLAGS"
|
||||||
mkdir -p $PKG/usr/man/man1 $PKG/usr/bin
|
|
||||||
|
|
||||||
make install \
|
|
||||||
INSTALLDIR=$PKG/usr/bin \
|
|
||||||
MANPAGEDIR=$PKG/usr/man
|
|
||||||
|
|
||||||
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
|
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
|
||||||
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||||
|
|
||||||
( cd $PKG/usr/man
|
find $PKG/usr/man -type f -exec gzip -9 {} \;
|
||||||
find . -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
|
||||||
for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
|
|
||||||
)
|
|
||||||
|
|
||||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
cp -a CHANGES CONTRIBUTORS INSTALL README TODO $PKG/usr/doc/$PRGNAM-$VERSION
|
cp -a CHANGES CONTRIBUTORS INSTALL README TODO $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
PRGNAM="fdupes"
|
PRGNAM="fdupes"
|
||||||
VERSION="1.40"
|
VERSION="1.50-PR2"
|
||||||
HOMEPAGE="http://netdial.caribe.net/~adrian2/fdupes.html"
|
HOMEPAGE="http://code.google.com/p/fdupes/"
|
||||||
DOWNLOAD="http://netdial.caribe.net/~adrian2/programs/fdupes-1.40.tar.gz"
|
DOWNLOAD="http://fdupes.googlecode.com/files/fdupes-1.50-PR2.tar.gz"
|
||||||
MD5SUM="11de9ab4466089b6acbb62816b30b189"
|
MD5SUM="a4f0de2d9a79efce3d712d6520e58c7f"
|
||||||
DOWNLOAD_x86_64=""
|
DOWNLOAD_x86_64=""
|
||||||
MD5SUM_x86_64=""
|
MD5SUM_x86_64=""
|
||||||
MAINTAINER="Pierre Cazenave"
|
MAINTAINER="Pierre Cazenave"
|
||||||
EMAIL="pwcazenave {at} gmail {dot} com"
|
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: FDUPES is a program for identifying or deleting duplicate files
|
||||||
fdupes: residing within specified directories.
|
fdupes: residing within specified directories.
|
||||||
fdupes:
|
fdupes:
|
||||||
fdupes: Homepage: http://premium.caribe.net/~adrian2/fdupes.html
|
fdupes: Homepage: http://code.google.com/p/fdupes/
|
||||||
fdupes:
|
fdupes:
|
||||||
fdupes:
|
fdupes:
|
||||||
fdupes:
|
fdupes:
|
||||||
|
|
Loading…
Reference in a new issue