# -*- 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           github 1.0
PortGroup           dart 1.0

github.setup        huanguan1978 ft 1.0.7 v
github.tarball_from archive


categories          sysutils
license             LGPL-3

maintainers         {gmail.com:huanguan1978:crown.hg} openmaintainer

description         High-performance cross-platform file management and automation tool.
long_description    ft (FileTools) is a high-performance, cross-platform CLI tool \
                    for file management and workflow automation. It excels at \
                    precision file discovery using glob patterns, file states \
                    (time, size), and MIME-type detection. Beyond discovery, \
                    ft supports regex-based search-and-replace, and enables \
                    complex batch processing via built-in subcommands or by \
                    orchestrating native system CLI applications as a universal \
                    shell task runner.

notes "
To learn more about how ft empowers you to bypass the limitations of \
standard shell scripts and toolchains, please explore our FAQ: \
https://github.com/huanguan1978/ft/blob/main/doc/en/FAQ.md
"

# openssl dgst -rmd160 ft-1.0.7.tar.gz 
checksums           rmd160  57ee5df2670177ef31d7fbcce895d44b28251e54 \
                    sha256  c529d5162daaf587e808c1063c7f5010ba4af894ea37b09acd2fa7dad254d1eb \
                    size    4474704

build.target        bin/ft.dart
build.args          -o ft

destroot {
    xinstall -m 755 ${worksrcpath}/ft ${destroot}${prefix}/bin/
}
