#!/bin/sh

name="unzoo"
title="unZOO"
package="unzoo"
version="4.4"
build="1"
noarch="n"
build_info="Standard build."

info="Extracts, tests and viewes ZOO archives."
desc="The unzoo utility is a Public Domain program, distributed with
source code and developed for extracting, testing and viewing
the contents of archives created with the ZOO archiver."
category="tools/archivizing"
environment="console/text"
contact="$name@packages.packware.gnu.pl"
vendor="The Packware Project"
vendor_id="pw"

requires=""
obsoletes=""
conflicts=""

docs_source=""
docs_cwd="README"

strip_bin="y"
reset_own="y"
reset_dir="y"
reset_fil="y"
delete_cat="y"

. /usr/src/tgz/lib/builder.defs

zcat $src_pkg/unzoo.c.gz > $tmp/sources/unzoo.c

parent_package="$package"
write_info main

cd $tmp/sources

gcc $AM_CFLAGS -DSYS_IS_UNIX -DSYS_HAS_MKDIR unzoo.c -o unzoo

copy unzoo $pkg_main/usr/bin

make_docs

make_package main

clean_up
