#!/bin/sh

name="unify"
title="unify"
package="unify"
version="1.2"
build="1"
noarch="n"
build_info="Standard build."

info="Patch file format translator."
desc="unify translates a context diff into a unified diff, or vice-versa.
It is a supplement to diffutils and patch.
Install unify if you find one patch format easier to read than the
other, for example if you want to read patch .rej files in unified
format."
category="development/tools"
environment="console/text"
contact="$name@packages.packware.gnu.pl"
vendor="The Packware Project"
vendor_id="pw"

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

docs_source="README"
docs_cwd=""

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

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

add_source http://www.web.us.uu.net/sw/dist/$name-$version.tar.gz

apply_patch unify-warnings.patch

parent_package="$package"
write_info main

cd $src1

gcc $AM_CFLAGS -Wall -O2 -g -o unify unify.c

copy unify $pkg_main/usr/bin
copy unify.1 $pkg_main/usr/man/man1

make_docs

make_package main

clean_up
