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

go.setup            github.com/danielmiessler/Fabric 1.4.317 v
revision            0
name                [string tolower ${github.project}]
categories          llm
maintainers         {i0ntempest @i0ntempest} openmaintainer
license             MIT

description         open-source framework for augmenting humans using AI
long_description    ${name} is an ${description}. It provides a modular system for solving specific problems\
                    using a crowdsourced set of AI prompts that can be used anywhere.

homepage            https://danielmiessler.com/p/fabric-origin-story

checksums           rmd160  689870e4e82478abeec284109e907d96848f63e2 \
                    sha256  d71ade430e4233dc71825bf43d85271d8f43848a0a03de03d54236ed0b9e4b87 \
                    size    185479514

# go2port fails on too many packages to be manually fixable
go.offline_build    no
build.args          -o ./${name} -ldflags '-s -w' ./cmd/${name}

destroot {
    xinstall -m 0755 ${worksrcpath}/${name} ${destroot}${prefix}/bin/
    xinstall -d ${destroot}${prefix}/share/bash-completion/completions \
                ${destroot}${prefix}/share/zsh/site-functions \
                ${destroot}${prefix}/share/fish/vendor_completions.d
    xinstall -m 0644 ${worksrcpath}/completions/${name}.bash ${destroot}${prefix}/share/bash-completion/completions
    xinstall -m 0644 ${worksrcpath}/completions/_${name} ${destroot}${prefix}/share/zsh/site-functions
    xinstall -m 0644 ${worksrcpath}/completions/${name}.fish ${destroot}${prefix}/share/fish/vendor_completions.d
}
