SUMMARY="The Awesome Resizer"
DESCRIPTION="TAResizer is a freeware application that allows quick dynamic \
resizing of any translator supported image and much much more."
HOMEPAGE="https://github.com/HaikuArchives/TheAwesomeResizer"
COPYRIGHT="1999-2000 Jonathan Villemure"
LICENSE="MIT"
REVISION="2"
srcGitRev="9fc84791562f75e5d2bc3b2bece0057f0b86e685"
SOURCE_URI="https://github.com/HaikuArchives/TheAwesomeResizer/archive/$srcGitRev.zip"
CHECKSUM_SHA256="cc6abdb9e2a4db2fed515a9368211a3d4e68a01cf5d2621498ae2fb9b70c6c30"
SOURCE_DIR="TheAwesomeResizer-$srcGitRev"

ARCHITECTURES="all"

PROVIDES="
	taresizer = $portVersion
	app:TAResizer = $portVersion
	"
REQUIRES="
	haiku
	"

BUILD_REQUIRES="
	haiku_devel
	"
BUILD_PREREQUIRES="
	makefile_engine
	cmd:g++
	cmd:make
	"

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

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