# -*- 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        ehrlz ollama-bash-completion-plugin b7c62672c02dbac2e8a5664481749e36a390b328
github.tarball_from archive
version             20250428
revision            0

categories          llm sysutils
platforms           any
supported_archs     noarch
license             MIT

maintainers         {i0ntempest @i0ntempest} openmaintainer

description         Ollama bash completion
long_description    Tiny plugin for bash shell to autocomplete commands and model names in\
                    ollama commands

checksums           rmd160  9431a544437fb06f30c2fd46eefb1f672c18eebb \
                    sha256  4742b1ce5ab53bb6a0707bddb50a4fadf383cdd54c7e3a0be3c15bb41986f732 \
                    size    221481

depends_run         port:bash-completion

use_configure       no
build {}

destroot {
    set compdir_bash ${prefix}/etc/bash_completion.d
    xinstall -d ${destroot}${compdir_bash}
    xinstall -m 0644 ${worksrcpath}/plugin.sh ${destroot}${compdir_bash}/ollama
}
