# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-

PortSystem          1.0
PortGroup           golang 1.0

go.setup            github.com/temporalio/cli 1.4.1 v
go.offline_build    no
name                temporal

homepage            https://temporal.io

description         Command-line interface for Temporal incl. local dev server
long_description    \
    {*}${description}. Temporal is the open source microservices \
    orchestration platform for running mission critical code at any scale.

categories          devel sysutils
installs_libs       no
license             MIT
maintainers         {pardus.de:wrobel @wrobel} openmaintainer

supported_archs     arm64 x86_64
use_parallel_build  no


build.target        ./cmd/temporal

checksums           rmd160  cf3e5d608ab21ec8fecbbd5accf10d7133dd5e81 \
                    sha256  fcfe2e857b4e03fad8e63f239df03a21685427f88e0a627c8ac5050ea5908974 \
                    size    249415

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

notes "Start dev server: 'temporal server start-dev' (UI: http://localhost:8233)"
