aboutsummaryrefslogtreecommitdiff
path: root/graphics/findimagedupes/findimagedupes.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/findimagedupes/findimagedupes.SlackBuild')
-rw-r--r--graphics/findimagedupes/findimagedupes.SlackBuild13
1 files changed, 7 insertions, 6 deletions
diff --git a/graphics/findimagedupes/findimagedupes.SlackBuild b/graphics/findimagedupes/findimagedupes.SlackBuild
index 9519209a71351..1f0d89034bb39 100644
--- a/graphics/findimagedupes/findimagedupes.SlackBuild
+++ b/graphics/findimagedupes/findimagedupes.SlackBuild
@@ -7,7 +7,7 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
PRGNAM=findimagedupes
-VERSION=${VERSION:-2.18}
+VERSION=${VERSION:-2.19}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
@@ -20,12 +20,13 @@ OUTPUT=${OUTPUT:-/tmp}
set -e
-rm -rf $PKG
-mkdir -p $TMP $PKG $OUTPUT
-cd $TMP
+rm -rf $PKG $TMP/$PRGNAM
+mkdir -p $TMP/$PRGNAM $PKG $OUTPUT
+cd $TMP/$PRGNAM
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
-cd $PRGNAM-$VERSION
+# 2.18 has an enclosing dir in the tarball, 2.19 doesn't, this worx with both:
+[ -d $PRGNAM-$VERSION ] && cd $PRGNAM-$VERSION
chown -R root:root .
chmod 644 *
@@ -41,7 +42,7 @@ pod2man -s1 --stderr -cSlackBuilds.org -r$VERSION $PRGNAM | \
gzip -9c > $PKG/usr/man/man1/$PRGNAM.1.gz
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a README COPYING history $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a README* COPYING history $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install