SUMMARY="Broadcom firmware cutter"
DESCRIPTION="A tool to extract the firmware from broadcom drivers"
HOMEPAGE="https://bues.ch/b43/fwcutter/"
COPYRIGHT="2005-2011 Martin Langer
2005-2014 Michael Buesch
2005-2011 Alex Beregszaszi"
LICENSE="BSD (2-clause)"
SOURCE_URI="https://bues.ch/b43/fwcutter/b43-fwcutter-019.tar.bz2"
SOURCE_DIR="b43-fwcutter-$portVersion"
CHECKSUM_SHA256="d6ea85310df6ae08e7f7e46d8b975e17fc867145ee249307413cfbe15d7121ce"
PATCHES="b43_fwcutter-$portVersion.patchset"
REVISION="1"

ARCHITECTURES="all ?x86"

PROVIDES="
	b43_fwcutter = $portVersion
	cmd:b43_fwcutter
	"
REQUIRES="
	haiku$secondaryArchSuffix
	"

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

BUILD()
{
	make $jobArgs
}

INSTALL()
{
	mkdir $binDir
	cp b43-fwcutter $binDir
}
