# -*- 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        jhford screenresolution 1.6 v
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
checksums           rmd160  e4e46d9b314667dbc93e5a990b0e00fd00f7f64e \
                    sha256  548179c7a50431634a91270fd1464d57a9cf2a37b9f13d4b30733743e2c6bbfc \
                    size    12840

categories          sysutils
maintainers         {ryandesign @ryandesign} openmaintainer
license             GPL-2

description         command-line utility to get, list, and set screen \
                    resolutions

long_description    ${name} is a {*}${description}.

use_configure       no

variant universal {}

build.target        build
build.args          ARCH_FLAGS="[get_canonical_archflags cc]" \
                    CC=${configure.cc} \
                    CFLAGS="${configure.cflags}" \
                    PREFIX=${prefix}

destroot.args       {*}${build.args}

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