# -*- 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

PortSystem          1.0

name                mkpwd
version             1.6
revision            0
checksums           rmd160  a438113a4fc823ae9e884c1d530fbe5689077432 \
                    sha256  6db5032fa6e2bc3ebd499ebf2b94f8df5b3ce64760d84fda7101e951bfb5c88a \
                    size    94696

categories          sysutils
license             Permissive
maintainers         nomaintainer

description         mkpwd is a scalable password generator
long_description    ${description}

homepage            https://www.o-schroeder.de/projects/mkpwd/
master_sites        https://www.o-schroeder.de/download/mkpwd/

patchfiles          implicit.patch \
                    libcrypt.patch \
                    mkpwd.1.patch \
                    version.patch

post-patch {
    reinplace "s|@VERSION@|${version}|g" ${worksrcpath}/mkpwd.c
}

livecheck.type      regex
livecheck.url       ${master_sites}
livecheck.regex     ${name}-(\[0-9.\]+)[quotemeta ${extract.suffix}]
