# -*- 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/sleuth-io/sx 2.3.1 v
go.offline_build    no
go.toolchain_min    1.26
revision            0

description         sx is a package manager for AI coding assistants

long_description    {*}${description}. sx is your team's private npm for AI \
                    assets - skills, MCP configs, commands, and more.

categories          llm devel
installs_libs       no
license             Apache-2
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer

checksums           rmd160  be35a3867b62e55eb3bdef8cb6de378c2b2708dc \
                    sha256  857e7075ccd50b604469e48c33e23975209a8b31c5ad15e6686ab0a328e2993e \
                    size    7652394

build.cmd           make
build.pre_args-append \
                    DATE="2026-05-15T18:27:13Z" \
                    COMMIT=f7860de531fab143fe29fa5c127e535b408e6a13 \
                    VERSION=${github.tag_prefix}${version}
build.args          build

destroot {
    xinstall -m 0755 ${worksrcpath}/dist/${name} ${destroot}${prefix}/bin/
}
