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

github.setup        rustic-rs rustic 0.7.0 v
github.tarball_from archive
revision            0

description         Fast, encrypted, deduplicated backups powered by pure Rust

long_description    \
    Rustic is a backup tool that provides fast, encrypted, deduplicated \
    backups. It reads and writes the restic repo format desribed in the \
    design document and can therefore be used as a complete replacement for \
    restic.

categories          sysutils
installs_libs       no
license             MIT Apache-2
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer

checksums           ${distname}${extract.suffix} \
                    rmd160  cb3f933b1cdd8ed1fec2da8de4061b44a640c41c \
                    sha256  8fb1d80cc3333376a85f79d062bdc0e074e2f50e0b2e89c95907102100f0d277 \
                    size    141415

build.pre_args-delete \
                    --offline --frozen

destroot {
    xinstall -m 0755 \
        ${worksrcpath}/target/[cargo.rust_platform]/release/${name} \
        ${destroot}${prefix}/bin/
}
