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

github.setup        c0d-0x cruxpass 77d720104d9c0aefe31f2abbc28f8d4e0698abcc
version             20260121
revision            0
categories          sysutils
license             MIT
maintainers         {@barracuda156 macos-powerpc.org:barracuda} openmaintainer
description         Password Management CLI Tool
long_description    {*}${description}
checksums           rmd160  98937438494c6d741cd240be4354c016735e268a \
                    sha256  fc790308c0f930297b452e2d0c894038a944b9e3ac51d97a7b3b76b9b2a26305 \
                    size    1221961
github.tarball_from archive

patchfiles          patch-makefile

post-patch {
    foreach h {cruxpass.h crypt.h database.h} {
        reinplace "s|sqlcipher/sqlite3.h|sqlite3.h|" ${worksrcpath}/include/${h}
    }
}

depends_lib-append  port:libsodium \
                    port:sqlcipher

configure.cflags-append \
                    -std=c99
