# -*- 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/stripe/stripe-cli 1.55.10 v
go.toolchain_min    1.27.3
go.offline_build    no
revision            0

homepage            https://stripe.com/docs/stripe-cli

description         A command-line tool for Stripe

long_description    \
    The Stripe CLI helps you build, test, and manage your Stripe integration \
    right from the terminal. With the CLI, you can: securely test webhooks \
    without relying on 3rd party software, trigger webhook events or resend \
    events for easy testing, tail your API request logs in real-time, and \
    create, retrieve, update, or delete API objects.

categories          devel
installs_libs       no
license             Apache-2
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer

checksums           rmd160  93251efe37a5f429071984059f03012ef3eb60a2 \
                    sha256  5531f5b056f6cfef276b6138d51fe9291608607d425e807b2dbac0463921d8ab \
                    size    3803480

# disable stripe telemetry which is otherwise enabled by default
patchfiles          patch-disable-telemetry.diff

build.cmd           make
build.target        build

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