summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--graphics/findimagedupes/README7
-rw-r--r--graphics/findimagedupes/findimagedupes.SlackBuild51
-rw-r--r--graphics/findimagedupes/findimagedupes.info10
-rw-r--r--graphics/findimagedupes/slack-desc19
4 files changed, 87 insertions, 0 deletions
diff --git a/graphics/findimagedupes/README b/graphics/findimagedupes/README
new file mode 100644
index 0000000000..fece13a32d
--- /dev/null
+++ b/graphics/findimagedupes/README
@@ -0,0 +1,7 @@
+findimagedupes (find visually similar or duplicate images)
+
+findimagedupes compares a list of files for visual similarity, by
+computing and comparing 'visual fingerprints'.
+
+If you get "Can't locate Graphics/Magick.pm" errors, upgrade your
+GraphicsMagick to the latest available on SBo.
diff --git a/graphics/findimagedupes/findimagedupes.SlackBuild b/graphics/findimagedupes/findimagedupes.SlackBuild
new file mode 100644
index 0000000000..4e4666fdb0
--- /dev/null
+++ b/graphics/findimagedupes/findimagedupes.SlackBuild
@@ -0,0 +1,51 @@
+#!/bin/sh
+
+# Slackware build script for findimagedupes
+
+# Written by B. Watson (yalhcru@gmail.com)
+
+# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+
+PRGNAM=findimagedupes
+VERSION=${VERSION:-2.18}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+ARCH=noarch
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+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 .
+chmod 644 *
+
+# use private per-user dirs for Inline's compiled code.
+sed -i \
+ -e '/^use *Inline/iBEGIN { mkdir("$ENV{HOME}/.findimagedupes-inline"); }' \
+ -e '/DIRECTORY/s,=>.*,=> "$ENV{HOME}/.findimagedupes-inline";,' \
+ $PRGNAM
+
+install -D -m0755 $PRGNAM $PKG/usr/bin/$PRGNAM
+mkdir -p $PKG/usr/man/man1
+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
+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/graphics/findimagedupes/findimagedupes.info b/graphics/findimagedupes/findimagedupes.info
new file mode 100644
index 0000000000..dcdd2135a8
--- /dev/null
+++ b/graphics/findimagedupes/findimagedupes.info
@@ -0,0 +1,10 @@
+PRGNAM="findimagedupes"
+VERSION="2.18"
+HOMEPAGE="http://www.jhnc.org/findimagedupes/"
+DOWNLOAD="http://www.jhnc.org/findimagedupes/findimagedupes-2.18.tar.gz"
+MD5SUM="5c353c6e4611e194114d4192c32c6adb"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES="perl-Inline perl-file-mimeinfo GraphicsMagick"
+MAINTAINER="B. Watson"
+EMAIL="yalhcru@gmail.com"
diff --git a/graphics/findimagedupes/slack-desc b/graphics/findimagedupes/slack-desc
new file mode 100644
index 0000000000..610346bb71
--- /dev/null
+++ b/graphics/findimagedupes/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------------------------------------------------------|
+findimagedupes: findimagedupes (find visually similar or duplicate images)
+findimagedupes:
+findimagedupes: findimagedupes compares a list of files for visual similarity, by
+findimagedupes: comparing 'visual fingerprints'.
+findimagedupes:
+findimagedupes:
+findimagedupes:
+findimagedupes:
+findimagedupes:
+findimagedupes:
+findimagedupes: