# SliTaz package receipt.

PACKAGE="groff"
VERSION="1.22.4"
CATEGORY="utilities"
SHORT_DESC="The GNU troff text-formatting system."
MAINTAINER="rocky@slitaz.org"
BUILD_DEPENDS="perl texinfo"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://www.gnu.org/software/groff/groff.html"
WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	PAGE=A4 \
	./configure --prefix=/usr &&
	make && 
	make DESTDIR=$install install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/share
    cp -a $_pkg/usr/bin $fs/usr
    cp -a $_pkg/usr/lib $fs/usr
    cp -a $_pkg/usr/share/groff $fs/usr/share
}