SUMMARY="Graphical RSRC resource editor"
DESCRIPTION="An editor for binary resource files (.rsrc) that get compiled \
into an application and can then be used within the application."
HOMEPAGE="https://github.com/HaikuArchives/ResourceEdit"
COPYRIGHT="2012-2013 Tri-Edge AI"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="https://github.com/HaikuArchives/ResourceEdit/archive/8c3f779d08525ed1e607627213278436a0502125.tar.gz"
CHECKSUM_SHA256="848b4e6d8a30737793d858d95360d33219efa615635b0b79c845bc4b78f6a64b"
SOURCE_DIR="ResourceEdit-8c3f779d08525ed1e607627213278436a0502125"

ARCHITECTURES="?all x86_gcc2"

PROVIDES="
	resourceedit = $portVersion
	app:ResourceEdit = $portVersion
	"
REQUIRES="
	haiku
	"

BUILD_REQUIRES="
	haiku_devel
	"
BUILD_PREREQUIRES="
	makefile_engine
	cmd:gcc
	cmd:ld
	cmd:make
	"

BUILD()
{
	cd source
	make $jobArgs OBJ_DIR=objects
}

INSTALL()
{
	cd source
	mkdir -p $appsDir
	cp objects/ResourceEdit $appsDir
	addAppDeskbarSymlink $appsDir/ResourceEdit
}
