SUMMARY="Scripts to convert regular ASCII text to man pages"
DESCRIPTION="Txt2man converts flat ASCII text to man page format. It is a \
shell script using gnu awk, that should run on any Unix like system."
HOMEPAGE="https://github.com/mvertes/txt2man"
COPYRIGHT="2001-2016 Marc Vertes"
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="https://github.com/mvertes/txt2man/archive/txt2man-$portVersion.tar.gz"
CHECKSUM_SHA256="f6939e333a12e1ecceccaa547b58f4bf901a580cd2d8f822f8c292934c920c99"
SOURCE_DIR="txt2man-txt2man-$portVersion"

ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="!x86_gcc2 x86"

PROVIDES="
	txt2man$secondaryArchSuffix = $portVersion
	cmd:bookman = $portVersion
	cmd:src2man = $portVersion
	cmd:txt2man = $portVersion
	"
REQUIRES="
	haiku$secondaryArchSuffix
	cmd:awk
	"

BUILD_REQUIRES="
	haiku$secondaryArchSuffix
	"
BUILD_PREREQUIRES="
	cmd:awk
	cmd:make
	"

BUILD()
{
	:
}

INSTALL()
{
	make install prefix=$prefix
	mkdir -p $manDir
	mv $prefix/share/man/* $manDir
	rm -rf $prefix/share
}
