# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
description torrent status program
long_description TorrentSniff is a command line Perl program \
that reads a BitTorrent .torrent file from the local file \
system or from a URL and reports on the status of the torrent.
homepage http://www.highprogrammer.com/alan/perl/torrentsniff.html
master_sites http://www.highprogrammer.com/alan/perl/
checksums rmd160 c52eb178784b759406e4f08688f44d92870d1a81 \
sha256 8af4f672a0ec6c4ad85665f90e65dadf38d15fab9df65aed1d2e50de8f6a4476
depends_run-append port:p${perl5.major}-libwww-perl \
port:p${perl5.major}-digest-sha1
patchfiles patch-torrentsniff.diff
reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/torrentsniff
reinplace "s|__NAME__|${name}|g" ${worksrcpath}/torrentsniff
reinplace "s|__PERL__|${perl5.bin}|g" ${worksrcpath}/torrentsniff
xinstall -m 755 -d ${destroot}${prefix}/share/${name}/BitTorrent/ ${destroot}${prefix}/bin/
xinstall -m 644 ${worksrcpath}/BitTorrent/BDecode.pm ${destroot}${prefix}/share/${name}/BitTorrent/
xinstall -m 755 ${worksrcpath}/torrentsniff ${destroot}${prefix}/bin/
livecheck.url ${homepage}
livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"