# -*- 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        roddhjav pass-update 2.1 v
github.tarball_from releases
revision            1

categories          security
supported_archs     noarch
platforms           any
license             GPL-2
maintainers         {judaew @judaew} openmaintainer

description         A pass extension that provides a convenient solution to update an existing password.
long_description    {*}${description}

depends_lib         port:pass

checksums           rmd160  d43ac1ff688871c635140e8beafb5472fcc0f1e7 \
                    sha256  2b0022102238e022e7ee945b7622f4c270810cda46508084fcb193582aafaf6f \
                    size    46200

depends_run         port:pass

use_configure       no
build {}

destroot.env-append PREFIX=${prefix}
destroot.env-append BASHCOMPDIR=${prefix}/share/bash-completion/completions

notes {
    To use pass-update bash completion, add the following lines at the end of your .bash_profile:
        [[ -r "${prefix}/share/bash-completion/completions/pass-update" ]] && source "${prefix}/share/bash-completion/completions/pass-update"
}