# -*- 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        imomaliev tmux-bash-completion f5d53239f7658f8e8fbaf02535cc369009c436d6
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
version             20200419
revision            0

categories          devel
platforms           any
supported_archs     noarch
license             GPL-2

maintainers         nomaintainer

description         TMUX bash completion
long_description    TMUX bash completion based on bash-it's tmux completion

checksums           rmd160  bc4b4d2c563297295420bacb56a1d9285e7e7d11 \
                    sha256  ae3d8c872dab46450ea05a901776f0e8743304ca70a5a0d55413db486c7aec9f \
                    size    8735

depends_run         port:bash-completion \
                    port:tmux

use_configure       no
build {}

destroot {
    set compdir_bash ${prefix}/etc/bash_completion.d
    set docdir ${prefix}/share/doc/${name}
    xinstall -d ${destroot}${docdir}
    xinstall -d ${destroot}${compdir_bash}
    xinstall -m 0644 ${worksrcpath}/completions/tmux ${destroot}${compdir_bash}
    xinstall -m 0644 -W ${worksrcpath} \
        COPYING README.md \
        ${destroot}${docdir}
}
