diff options
author | Yth - Arnaud <yth@ythogtha.org> | 2018-05-14 22:57:17 +0100 |
---|---|---|
committer | David Spencer <idlemoor@slackbuilds.org> | 2018-05-19 00:45:04 +0100 |
commit | 040fa3e7938d7e0a0bf55af97dc289e38f79ecc4 (patch) | |
tree | 323164f1f056c58aa267beb8a0d0e1af79cc1d67 /system/jdupes | |
parent | 0de69577aeaa2f18f1aa47acd777c92ccca159d2 (diff) |
system/jdupes: Added (taking action upon duplicate files).
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'system/jdupes')
-rw-r--r-- | system/jdupes/README | 6 | ||||
-rw-r--r-- | system/jdupes/jdupes.SlackBuild | 91 | ||||
-rw-r--r-- | system/jdupes/jdupes.info | 10 | ||||
-rw-r--r-- | system/jdupes/slack-desc | 19 |
4 files changed, 126 insertions, 0 deletions
diff --git a/system/jdupes/README b/system/jdupes/README new file mode 100644 index 0000000000000..f81875dee6999 --- /dev/null +++ b/system/jdupes/README @@ -0,0 +1,6 @@ +jdupes is a program for identifying and taking actions upon duplicate +files. This fork of fdupes known as 'jdupes' is heavily modified from +and improved over the original. + +jdupes IS NOT a drop-in compatible replacement for fdupes! +Option availability and meanings differ between the two programs. diff --git a/system/jdupes/jdupes.SlackBuild b/system/jdupes/jdupes.SlackBuild new file mode 100644 index 0000000000000..e197563eb7098 --- /dev/null +++ b/system/jdupes/jdupes.SlackBuild @@ -0,0 +1,91 @@ +#!/bin/sh +# Slackware build script for jdupes. +# +# Yth | Pont-en-Royans, France | yth@ythogtha.org +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 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 +# 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, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# 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=jdupes +VERSION=${VERSION:-1.10.1} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +DOCFILES="CHANGES INSTALL LICENSE README" + +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 +chown -R root:root . +find -L . \ + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + +sed -i -e 's|share/man|man|' Makefile + +make PREFIX=/usr CFLAGS_EXTRA="$SLKCFLAGS" +make install DESTDIR=$PKG + +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +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 $DOCFILES $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +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.${PKGTYPE:-tgz} diff --git a/system/jdupes/jdupes.info b/system/jdupes/jdupes.info new file mode 100644 index 0000000000000..fc3690b5a5baa --- /dev/null +++ b/system/jdupes/jdupes.info @@ -0,0 +1,10 @@ +PRGNAM="jdupes" +VERSION="1.10.1" +HOMEPAGE="https://github.com/jbruchon/jdupes" +DOWNLOAD="https://github.com/jbruchon/jdupes/archive/v1.10.1/jdupes-1.10.1.tar.gz" +MD5SUM="f916046f6f7b64f0cc64bc38683da1bd" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="" +MAINTAINER="Yth - Arnaud" +EMAIL="yth@ythogtha.org" diff --git a/system/jdupes/slack-desc b/system/jdupes/slack-desc new file mode 100644 index 0000000000000..7ea8ea58888ff --- /dev/null +++ b/system/jdupes/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. +# Line up the first '|' above the ':' following the base package name, and +# the '|' on the right side marks the last column you can put a character in. +# You must make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +jdupes: jdupes (identifying and taking action upon duplicate files) +jdupes: +jdupes: jdupes is a program for identifying and taking actions upon duplicate +jdupes: files. +jdupes: +jdupes: This fork of fdupes known as 'jdupes' is heavily modified from and +jdupes: improved over the original. +jdupes: +jdupes: https://github.com/jbruchon/jdupes +jdupes: +jdupes: |