# -*- 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/ssut/payload-dumper-go 1.3.0
github.tarball_from archive
revision            0

categories          sysutils
maintainers         {@tsln1998 gmail.com:tsln1998} openmaintainer
license             Apache-2

description         An android OTA payload dumper written in Go.
long_description    ${description}

checksums           ${distname}${extract.suffix} \
                        rmd160  2498a116ca5592de5e5caf124171abd05d3b1dd1 \
                        sha256  d7ba33a80c539674c0b63443b8c6dd9c2040ec996323f38ffe72e024d302eb2d \
                        size    34670

go.vendors          google.golang.org/protobuf \
                        repo    github.com/protocolbuffers/protobuf-go \
                        lock    v1.34.2 \
                        rmd160  b725d236d835fc95f3cf19809325bf4deb998149 \
                        sha256  dc28007fa38598d4584d48a9e2284e738b63d57ea1cca25d175923884f2eb887 \
                        size    1523231 \
                    golang.org/x/xerrors \
                        lock    9bdfabe68543 \
                        rmd160  eee9929ac1c0380402c45b388077c5c505f13311 \
                        sha256  dc1be1d7efb43643507e87352ae7161883c48cb5116a20a1739ab93ab558bccf \
                        size    13661 \
                    golang.org/x/sys \
                        lock    v0.22.0 \
                        rmd160  462d25bfdd648d7c117aa800e316e4bc1b867438 \
                        sha256  eb16e06abd89ba057fbfbc74bc30590f02c8ed5570b93753f1b84da610f26c39 \
                        size    1498756 \
                    github.com/vbauerster/mpb \
                        lock    v5.4.0 \
                        rmd160  daf95142dfb1d5220776331be9e1918c65a07bb2 \
                        sha256  93a693ae796092289f404abb7b1d6dd832986ac6915161c83d81bae5e8de5366 \
                        size    59070 \
                    github.com/valyala/gozstd \
                        lock    v1.21.1 \
                        rmd160  d7015c62ddf6254f217d1255fd0b28ac629dfbf0 \
                        sha256  457a666e72efda1bf4dc35dabd569e30812aaf2c2fb4f4c66cd489ef7faa97dc \
                        size    12284675 \
                    github.com/spencercw/go-xz \
                        lock    c82a2123b492 \
                        rmd160  04650ab059d0018e7bf527a553d244f4302f244c \
                        sha256  a8b3747e10424369385ffca49b3f40718ce1194e4f10acdc061dcc7535fa9fd0 \
                        size    4150 \
                    github.com/mattn/go-runewidth \
                        lock    v0.0.9 \
                        rmd160  412c0e508e55f4fe437be0f71d7d22eca2b4366f \
                        sha256  4f0f4a22257ccecfb6beae88052d850380ecc0e806d6bcc92d3656ebcac3b638 \
                        size    16716 \
                    github.com/google/go-cmp \
                        lock    v0.5.5 \
                        rmd160  5caef57da3ce09c102ed270168afa2a5200c2c47 \
                        sha256  be284023d91976ef03d13cb5670e338c09a0a0da9925d7de457f44e33aebb724 \
                        size    102365 \
                    github.com/dustin/go-humanize \
                        lock    v1.0.1 \
                        rmd160  3c799a1cbda2e82f3d35ec20e539581fd9c24b9d \
                        sha256  aa5a5059ebd8fffc9e9b9e3c888d85cdb1f4c8f7b73944a6c027647039a83df7 \
                        size    17709 \
                    github.com/acarl005/stripansi \
                        lock    5a71ef0e047d \
                        rmd160  fd222fb597292536232f066479c48f1e7769373f \
                        sha256  7c4d6ffa5a4401bffde46366e0c4976893ee8d6210543bc70cc1c514c22e29ae \
                        size    1479 \
                    github.com/VividCortex/ewma \
                        lock    v1.1.1 \
                        rmd160  6b8bf4660d058b82578645c8ad7ab1613efbf07e \
                        sha256  6a4094d5d00f3db00f44400796e8e13dba57419d350d88cf3f0a5a8e463a073a \
                        size    6049

depends_lib-append  port:xz

build.env-append    CGO_ENABLED=1


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