# -*- 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.3.0
revision            0
checksums           rmd160  38aab99fa0e7fcf82fa8d2fc7753d58e05c97395 \
                    sha256  b0073b865e66399fd1100efad8cb4f821db65ef5ae61d78ba7918c3c8b68fcb7 \
                    size    56363

categories          sysutils
platforms           darwin
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

# this patch should be upstreamed
patchfiles          patch-searchfs-fsgetpath-availability.diff

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

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