#!/usr/bin/make -f # debian/rules for findimagedupes using cdbs # Andreas Tille , GPL pkg:=findimagedupes include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/class/perlmodule.mk DEB_DH_PERL_ARGS := usr/lib/findimagedupes/lib DEB_MAKEMAKER_USER_FLAGS := LIB=/usr/lib/findimagedupes/lib build/findimagedupes:: # Bug #531145: Removing installation instructions from the manpage, as # they are useless if the package is installed. Upstream has no other # documentation, so this section will stay in upstream's version. if grep -q '^=head1 INSTALLATION' $(pkg); then \ sed -i.pristine '/^=head1 INSTALLATION/,/^=head1 /{/^=head1 OPTIONS/p;d;}' \ $(pkg); fi # Upstream has now updated README himself in version 2.18 # It might be reasonable to create the README this way anyway # pod2text findimagedupes > ./tmp/README clean:: [ ! -f findimagedupes.pristine ] || mv findimagedupes.pristine findimagedupes