# -*- 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                duply
version             1.9.1
set branch          [join [lrange [split ${version} .] 0 1] .]
platforms           any
categories          sysutils
maintainers         gmail.com:dmankus
license             GPL-2
supported_archs     noarch

description         Duply is a shell front end for the duplicity backup tool.

long_description    Duply greatly simplifies duplicity's usage by \
                    implementing backup job profiles, batch commands and more.

homepage            http://duply.net
master_sites        sourceforge:project/ftplicity/duply%20%28simple%20duplicity%29/${branch}.x

extract.suffix      .tgz
distname            ${name}_${version}

checksums           rmd160  b2fe031856b9e109e3be38bbd8d16fd079251c0f \
                    sha256  e5f11c5a31a55de24cc5101a6429ea3eac14c0d3f0d6dec344b687089845efc5

depends_run         port:duplicity

use_configure       no

build               {}

destroot {
    xinstall -m 755 ${worksrcpath}/${name} ${destroot}${prefix}/bin/
}

livecheck.regex     "[quotemeta ${name}]_(\\d+(?:\\.\\d+)*)[quotemeta ${extract.suffix}]"
