PortSystem      1.0

name            fcrackzip
version         1.0
categories      security
license         GPL-2
platforms       darwin
maintainers     nomaintainer
description     Portable, fast and featureful ZIP password cracker

long_description \
    ${description}

homepage        http://oldhome.schmorp.de/marc/fcrackzip.html
master_sites    http://oldhome.schmorp.de/marc/data/

checksums       md5     254941f51759f9425965f4b05fe7ac2c \
                sha1    92e4f8caa880c55b20e13feb7a25c8b8fd3accf8 \
                rmd160  8c784108816c990fcd09cfafc69a5d4a0ef1d33a

depends_build   path:bin/perl:perl5
configure.perl  ${prefix}/bin/perl

configure.args  --mandir=${prefix}/share/man

pre-configure {
	reinplace -E "s/^(#define USE_GCC_ASM) 1$/\\1 0/" ${worksrcpath}/configure
}

post-destroot {
   xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
   xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING NEWS README \
      ${name}.html ${name}.txt ${destroot}${prefix}/share/doc/${name}
}

livecheck.type  regex
livecheck.url   ${master_sites}?M=D
livecheck.regex ${name}-(\\d+(?:\\.\\d+)*)