# SliTaz package receipt.

PACKAGE="setserial"
VERSION="2.17"
CATEGORY="system-tools"
SHORT_DESC="Serial port configutation tool."
MAINTAINER="pascal.bellard@slitaz.org"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://setserial.sourceforge.net/"
WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	mkdir -p _pkg/usr/bin
	
	# http://bugs.gentoo.org/309883
	#  & remove warnings 
	patch -p1 < $stuff/setserial-2.17.u || return 1
	
	./configure --prefix=/usr --infodir=/usr/share/info \
	--mandir=/usr/share/man $CONFIGURE_ARGS &&
	make $PACKAGE &&
	install -m 755 $PACKAGE _pkg/usr/bin
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	cp -a $_pkg/usr $fs
}