# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=portfile:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           github 1.0

github.setup        zolrath wemux 3.2.0 v
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
revision            2
maintainers         nomaintainer
license             MIT
categories          devel
description         wemux enhances tmux to make multi-user terminal multiplexing both easier and more powerful.
long_description    {*}${description} It features multi-server support as well as user listing and notifications when users attach/detach.

platforms           any
supported_archs     noarch

depends_lib         path:bin/tmux:tmux

checksums           rmd160  1605853e4d493522d558a7b59a23f56b0b9ebe33 \
                    sha256  97378d4a40d6f230b5a77fbd29b100fca8f249d32a90fedd45b9a5ae3de3e47e

use_configure       no

patch {
    reinplace -W ${worksrcpath} "s|/usr/local|${prefix}|g" wemux README.md man/wemux.1
}

build {}

destroot {
    xinstall -m 775 ${worksrcpath}/wemux ${destroot}${prefix}/bin
    xinstall -m 664 ${worksrcpath}/wemux.conf.example ${destroot}${prefix}/etc
}
