# -*- 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
PortGroup           github 1.0

github.setup        anders pwgen 1.5
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball

name                sf-pwgen
categories          security
maintainers         nomaintainer
installs_libs       no
license             zlib

description         macOS command line password generator.

long_description    {*}${description} \
                    A command line tool that generates passwords using \
                    macOS's SecurityFoundation framework.

checksums           rmd160  b1a7c50fb49dd75e694e951203c93360edf4caff \
                    sha256  65633b914fe61725dfe9da5ff29b8cca769ff59a382a3c8fa56bb9f71ee97e7f \
                    size 8668

use_configure       no
build.target        ""

destroot {
    xinstall -m 0755 -W ${worksrcpath} \
        sf-pwgen \
        ${destroot}${prefix}/bin
}

notes "
Example correct-horse-battery-staple usage:

    sf-pwgen --algorithm memorable --count 2 --length 24 | paste -s -d -- '-'
"