SUMMARY="A firmware analysis tool"
DESCRIPTION="A fast, easy to use tool for analyzing, reverse engineering, and extracting data from binary firmware images."
HOMEPAGE="https://github.com/ReFirmLabs/binwalk"
COPYRIGHT="2010-2015 Craig Heffner"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="https://github.com/ReFirmLabs/binwalk/archive/v${portVersion}.tar.gz"
CHECKSUM_SHA256="f5495f0e4c5575023d593f7c087c367675df6aeb7f4d9a2966e49763924daa27"

ARCHITECTURES="any"

PROVIDES="
	binwalk$secondaryArchSuffix = $portVersion
	cmd:binwalk$secondaryArchSuffix = $portVersion
	"

REQUIRES="
	haiku$secondaryArchSuffix
	"

BUILD_REQUIRES="
    haiku${secondaryArchSuffix}_devel
    "
BUILD_PREREQUIRES="
    cmd:cmake
    cmd:g++$secondaryArchSuffix
    cmd:gcc$secondaryArchSuffix
    cmd:make
	cmd:python3
    "

BUILD()
{
	python3 setup.py build
}

INSTALL()
{
	python3 setup.py install --prefix=$prefix --root=/
}
