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

github.setup        JFreegman SpicyPass 0.13.0 v
name                [string tolower ${github.project}]
revision            0
categories          sysutils security
license             GPL-3
maintainers         {@barracuda156 macos-powerpc.org:barracuda} openmaintainer
description         Light-weight password manager
long_description    {*}${description} with a focus on simplicity and security

checksums           rmd160  e51bef9b19245d33494af2a8dca11145ec737740 \
                    sha256  64b1f43c1e88abeb3faf895d4cf536caa51a75eaf2be63d61f924df0dc8273a7 \
                    size    55444
github.tarball_from archive

depends_build-append \
                    path:bin/pkg-config:pkgconfig

depends_lib-append  path:lib/pkgconfig/glib-2.0.pc:glib2 \
                    path:lib/pkgconfig/gtk+-3.0.pc:gtk3 \
                    port:libsodium

depends_run-append  port:desktop-file-utils

compiler.cxx_standard   2017

post-activate {
    system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
}
