diff options
Diffstat (limited to 'system/fdupes/fdupes.SlackBuild')
-rw-r--r-- | system/fdupes/fdupes.SlackBuild | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/system/fdupes/fdupes.SlackBuild b/system/fdupes/fdupes.SlackBuild index c157299c84..773d032db6 100644 --- a/system/fdupes/fdupes.SlackBuild +++ b/system/fdupes/fdupes.SlackBuild @@ -4,7 +4,7 @@ # Copyright 2008-2011 Pierre Cazenave <pwcazenave {at} gmail [dot] com> # Copyright 2013-2014 LukenShiro, Italy - +# Copyright 2019 yukoff, Chernihiv, Ukraine # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -13,7 +13,7 @@ # 1. Redistributions of this script must retain the above copyright # notice, this list of conditions and the following disclaimer. # -# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED # WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF # MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO # EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, @@ -27,15 +27,16 @@ # 17/12/2008 - Original script. # 28/05/2009 - Updated for Slackware64 and general tidy up. # 19/06/2011 - Updated to version 1.50-PR2 +# 30/01/2019 - Updated to version 1.6.1, i486 -> i586 PRGNAM=fdupes -VERSION=${VERSION:-1.51} -BUILD=${BUILD:-2} +VERSION=${VERSION:-1.6.1} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac @@ -46,8 +47,8 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" @@ -68,8 +69,10 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$PRGNAM-$VERSION -tar -xvf $CWD/$PRGNAM-$VERSION.tar.gz || tar -xvf $CWD/$PRGNAM-$PRGNAM-$VERSION.tar.gz -cd $PRGNAM-$PRGNAM-$VERSION +tar -xvf $CWD/$PRGNAM-$VERSION.tar.?z* \ + || tar -xvf $CWD/v$VERSION.tar.?z* \ + || tar -xvf $CWD/$PRGNAM-$PRGNAM-$VERSION.tar.?z* +cd $PRGNAM-$VERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -77,8 +80,8 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -# apply a patch by hobbes1069<at>gmail<dot>com for DESTDIR (issue #29) -patch -p1 < $CWD/fdupes-1.51-destdir.patch +# patch Makefile for PREFIX and MAN_BASE_DIR +patch -p0 < $CWD/fdupes-makefile.patch make install DESTDIR=$PKG PREFIX=/usr COMPILER_OPTIONS="$SLKCFLAGS" |