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

name                    senpai
go.setup                git.sr.ht/~delthas/senpai 0.4.1 ${name}-
revision                0
categories              irc net
installs_libs           no
maintainers             {ijams.me:nate @exprez135} \
                        openmaintainer
license                 ICS

master_sites            https://git.sr.ht/~delthas/senpai/refs/download/v${version}

# Tarball contents name conflicts with the default work dir name
worksrcdir              ${name}-v${version}

go.offline_build        no

description             A modern terminal IRC client written in Go.
long_description        Senpai is an open-source IRC client written in Go that works best with \
                        bouncers.

checksums               rmd160  79bd6bed5115e4e0a26ea4edc1cec9d07c629d50 \
                        sha256  fdb843257e2d4d5c697ea67e4350bb43daeddac0060da86299cd1df9728d133e \
                        size    288761

depends_build-append    port:scdoc

use_configure           no

build.cmd               make
build.target            all

destroot {
    system -W ${worksrcpath} "make install DESTDIR=${destroot} PREFIX=${prefix}"
}
