# -*- 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        glotlabs gdrive 3.9.0
github.tarball_from archive
name                gdrive3
revision            0

description         Google Drive CLI Client

long_description    \
    gdrive is a command line application for interacting with Google Drive. \
    This is the successor of gdrive2, though at the moment only the most \
    basic functionality is implemented.

categories          net
installs_libs       no
license             MIT
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer

checksums           rmd160  fce8ab202f8c4f00fa92a5e7d7217240832eac41 \
                    sha256  a4476480f0cf759f6a7ac475e06f819cbebfe6bb6f1e0038deff1c02597a275a \
                    size    46560

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

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

    xinstall -d ${destroot}${prefix}/share/${name}
    copy ${worksrcpath}/docs ${destroot}${prefix}/share/${name}/
}
