# -*- 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/42wim/matterbridge 1.26.0 v
revision            0

categories          net irc
license             Apache-2
maintainers         {judaew @judaew} openmaintainer

description         Multi-protocols (IRC/XMPP/Mattermost/Slack/Matrix/etc) bridge
long_description    \
    bridge between mattermost, IRC, gitter, xmpp, slack, discord, telegram, \
    rocketchat, twitch, ssh-chat, zulip, whatsapp, keybase, matrix, microsoft \
    teams, nextcloud, mumble, vk and more with REST API (mattermost not \
    required!)

checksums           ${distname}${extract.suffix} \
                        rmd160  c4bfd441f1687ae8c57cdc2fb825c4b5627ba84c \
                        sha256  00e1bbfe3b32f2feccf9a7f13a6f12b1ce28a5eb04cc7b922b344e3493497425 \
                        size    34275533

# FIXME: This port currently can't be built without allowing go mod to fetch
go.offline_build no

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

    xinstall -d ${destroot}${prefix}/share/${name}
    xinstall -m 0644 ${worksrcpath}/${name}.toml.sample \
        ${destroot}${prefix}/share/${name}
}
