graphics/findimagedupes: Added (find visually similar images).

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
B. Watson 2015-08-09 22:57:07 +07:00 committed by Willy Sudiarto Raharjo
parent ddfc8b41cb
commit 9aad35bf9d
4 changed files with 87 additions and 0 deletions

View File

@ -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.

View File

@ -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}

View File

@ -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"

View File

@ -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: