diff options
author | Pierre Cazenave <pwcazenave {at} gmail {dot} com> | 2010-05-13 00:40:13 +0200 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-13 00:40:13 +0200 |
commit | 790ba4f85c846acab15b24dce9c17711e07ca9be (patch) | |
tree | daaecf562237987716aa41faecacb23c1dd16924 /system/fdupes/fdupes.SlackBuild | |
parent | 4571375db7cc0c7842de76ea0ca4ab018ee6ecd2 (diff) | |
download | slackbuilds-790ba4f85c846acab15b24dce9c17711e07ca9be.tar.gz |
system/fdupes: Updated for version 1.40
Diffstat (limited to 'system/fdupes/fdupes.SlackBuild')
-rw-r--r-- | system/fdupes/fdupes.SlackBuild | 13 |
1 files changed, 9 insertions, 4 deletions
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 <pwcazenave {at} gmail [dot] com> # 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} |