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

github.setup        sveinbjornt searchfs 0.4.0
revision            0
checksums           rmd160  a7cde71eca4536a0e8e4f06b108d5156a43d0310 \
                    sha256  9bb00135181ba684c9548541aca912632dbf9533f1f9db7ca95595701930b2d9 \
                    size    59748

categories          sysutils
platforms           {darwin >= 20}
maintainers         {gmail.com:srirangav @srirangav}
license             BSD

description         APFS / HFS+ search utility

long_description    Command line tool to quickly search by filename on \
                    APFS and HFS+ volumes using the file system catalog.

github.tarball_from archive

variant universal {}

use_configure       no

build.args          CC="${configure.cc} [get_canonical_archflags cc]"

test.run            yes
depends_test-append port:python313
test.cmd            python3.13 test.py

destroot {
    xinstall -m 0755 ${worksrcpath}/${name} \
        ${destroot}${prefix}/bin/
    xinstall -m 0644 ${worksrcpath}/${name}.1 \
        ${destroot}${prefix}/share/man/man1/
}
