PortSystem      1.0

name            unzoo
version         4.4
categories      archivers
license         public-domain
platforms       darwin
maintainers     nomaintainer
description     A zoo archive extractor

long_description \
    Unzoo is a zoo archive extractor written by Martin \
    Schoenert. If unzoo is called with no arguments, it will first \
    print a summary of the commands and then prompt for command lines \
    interactively.

homepage        http://freecode.com/projects/unzoo/
master_sites    http://critical.ch/unzoo/

checksums       md5 2e73c26188688033b7c2b6c7da32ad39 \
                sha1 9f1d0193492276bd0f59a48d720ab6092c6d4a0f \
                rmd160 fd8e0c97e22adfc8fefd6f8d1b70d8ca53b234f3

use_configure   no
universal_variant   yes

build {
    system -W ${worksrcpath} "${configure.cc} ${configure.cflags} [get_canonical_archflags cc] -DSYS_IS_UNIX unzoo.c -o unzoo"
}

destroot {
    xinstall ${worksrcpath}/unzoo ${destroot}${prefix}/bin
    xinstall -m 0444 ${worksrcpath}/unzoo.1 ${destroot}${prefix}/share/man/man1
}