# SliTaz package receipt.

PACKAGE="mspdebug"
VERSION="0.17"
CATEGORY="development"
SHORT_DESC="free debugger for use with MSP430 MCUs."
MAINTAINER="pascal.bellard@slitaz.org"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://$PACKAGE.sourceforge.net/"
WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"

DEPENDS="libusb-compat"
BUILD_DEPENDS="libusb-compat-dev"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	sed -i 's|/usr/local|/usr|' Makefile
	make WITHOUT_READLINE=1 &&
	make DESTDIR=$PWD/_pkg install
}

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