#!/bin/sh

name="tidy"
title="tidy"
package="tidy"
version="20000804"
elver="4aug00"
build="1"
noarch="n"
build_info="Standard build."

info="Utility to clean up and pretty print HTML files."
desc="Tidy is utility for cleaning and pretty printing HTML files.
It can help in keeping your WWW sources in unified format (case
of tags) and proper encoding of different character sets."
category="tools/html"
environment="console/text"
contact="$name@packages.packware.gnu.pl"
vendor="The Packware Project"
vendor_id="pw"

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

docs_source="Overview.html,pending.html,release-notes.html,tidy.gif,grid.gif"
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.w3.org/People/Raggett/$name$elver.tgz

replace_regexp $src1/Makefile '^CFLAGS= \-O$' 'CFLAGS = -O2 $(AM_CFLAGS)'

parent_package="$package"
write_info main

cd $src1

do_make

copy tidy $pkg_main/usr/bin
copy man_page.txt $pkg_main/usr/man/man1 tidy.1

make_docs

make_package main

clean_up
