PortSystem 1.0

name                sysvbanner
version             1.0.15
categories          sysutils textproc
platforms	    darwin
maintainers	    nomaintainer

description         System V banner clone
long_description    \
    Displays a banner text the same way as the System V banner does: horizontally.

homepage            http://directory.fsf.org/text/doc/banner.html
master_sites        http://ftp.debian.org/debian/pool/main/s/sysvbanner

distfiles           ${name}_${version}${extract.suffix}

checksums           sha1    310960c38ff9778bc1597322f45f8b052b7c5ede \
                    rmd160  6268a34e613585db3ba3387e710c51bbc516df9c

livecheck.url	    http://packages.debian.org/unstable/misc/${name}
livecheck.regex	    "<h1>Package: ${name} \\\((\[a-z0-9.\]+)"

use_configure	    no

variant universal {}

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

destroot {
    xinstall -W ${worksrcpath} -m 755 banner ${destroot}${prefix}/bin/${name}
    xinstall -W ${worksrcpath} -m 644 banner.1 \
        ${destroot}${prefix}/share/man/man1/${name}.1
}
