# -*- 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/miniflux/v2 2.2.8
go.package          miniflux.app/v2
go.offline_build    no
name                miniflux
revision            0
categories          net
maintainers         {@sikmir disroot.org:sikmir} \
                    {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer
license             Apache-2

description         Minimalist and opinionated feed reader
long_description    {*}${description}
homepage            https://miniflux.app

checksums           rmd160  fa84b7222a2a87f29bf97292efcd27bb8117dc29 \
                    sha256  1c360012c3dd0202601db26755c511969b6c527f96d6829861a74095633a35c2 \
                    size    815761

build.args-append   \
    -ldflags=\"-s -w -X \
        '${go.package}/internal/version.Version=${version}' \
    \" \
    -o ${name}

destroot {
    set mandir ${prefix}/share/man/man1
    xinstall -m 0755 -d ${destroot}${mandir}

    xinstall -m 0755 ${worksrcpath}/${name}     ${destroot}${prefix}/bin/
    xinstall -m 0644 ${worksrcpath}/${name}.1   ${destroot}${mandir}/
}
