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

github.setup        jdx fnox 1.24.0 v
revision            0

homepage            https://fnox.jdx.dev/

description         encrypted\/remote secret manager

long_description    \
    Manage secrets with encryption or cloud providers—or both\! fnox gives \
    you a unified interface to work with secrets across development, CI, and \
    production.

categories          security
installs_libs       no
license             MIT
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer

fetch.type          git

post-fetch {
    system -W ${worksrcpath} "git submodule update --init"
}

cargo.offline_cmd

destroot {
    xinstall -m 0755 \
        ${worksrcpath}/target/[cargo.rust_platform]/release/${name} \
        ${destroot}${prefix}/bin/
}
