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

name                megatools
version             1.11.4.20250411
revision            0
checksums           rmd160  6273b16c1d90e19ba125147be65b39ceca3daeb1 \
                    sha256  f404ea598c9c5a67a966a007421945dc212460d673fa66bea44544fd82f8e7c9 \
                    size    105368

categories          net
license             GPL-2+
installs_libs       no
platforms           darwin
maintainers         {i0ntempest @i0ntempest} openmaintainer

description         Command line client application for Mega.
long_description    Megatools is a collection of programs for accessing Mega \
                    service from the command line on your desktop or server.

homepage            https://megatools.megous.com
master_sites        ${homepage}/builds/

depends_build-append \
                    port:asciidoc \
                    port:docbook2X \
                    port:pkgconfig

depends_lib-append  port:curl \
                    path:lib/pkgconfig/glib-2.0.pc:glib2 \
                    path:lib/libssl.dylib:openssl

livecheck.regex     ${name}-(\[0-9.git-\]+)[quotemeta ${extract.suffix}]
