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

name                dcl
version             0.1
categories          sysutils
platforms           any
maintainers         nomaintainer
license             GPL-2+
supported_archs     noarch

description         D-cleaner -- Disk && Directory Cleaner

long_description    given a path **dcl** will clean this directory, and \
                    eventually subdirs, from a customazible list of files, \
                    and eventually unmount or eject the volume.

homepage            https://github.com/elboza/dcl
master_sites        http://www.autistici.org/0xFE/software/releases/dcl/

checksums           md5     2dc4ee1f86c683508800df686b1f6cdc \
                    sha1    0e48c7e2ea652f9ebe54b1a0fafba56d7b13ee39 \
                    rmd160  cd293553eac6d87d1705dc7f3c9682e5387d4051

worksrcdir          ${name}

use_configure       no

build {}

destroot.destdir    DEST_DIR=${destroot}${prefix}/bin

post-destroot {
    set docdir ${prefix}/share/doc/${subport}
    xinstall -d ${destroot}${docdir}
    xinstall -m 644 -W ${worksrcpath} \
        README.md \
        ${destroot}${docdir}
}

livecheck.type      regex
livecheck.url       [lindex ${master_sites} 0]
livecheck.regex     ${name}-(\[0-9.\]+)${extract.suffix}
