SUMMARY="Command-line Teensy loader app"
DESCRIPTION="Application to load software on Teensy development boards."
HOMEPAGE="https://www.pjrc.com/teensy/loader_cli.html"
COPYRIGHT="2016 Paul Stoffregen"
LICENSE="GNU GPL v3"
SOURCE_URI="https://github.com/PaulStoffregen/teensy_loader_cli/archive/9dbbfa3b367b6c37e91e8a42dae3c6edfceccc4d.tar.gz"
CHECKSUM_SHA256="e4a20275102f311eea3138ff28dc6166f5ea4b9801cb7dd8dbd9ac7be5c0443d"
SOURCE_DIR="teensy_loader_cli-9dbbfa3b367b6c37e91e8a42dae3c6edfceccc4d"
REVISION="1"

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

PROVIDES="
	teensy_loader_cli$secondaryArchSuffix = $portVersion
	cmd:teensy_loader_cli
	"
REQUIRES="
	haiku$secondaryArchSuffix
	lib:libusb$secondaryArchSuffix
	"

BUILD_REQUIRES="
	haiku${secondaryArchSuffix}_devel
	devel:libusb$secondaryArchSuffix
	"
BUILD_PREREQUIRES="
	cmd:make
	cmd:gcc$secondaryArchSuffix
	"

BUILD()
{
	make $jobArgs
}

INSTALL()
{
	mkdir -p $prefix/bin
	cp teensy_loader_cli $prefix/bin
}
