SUMMARY="A tool to truncate files of any kind"
DESCRIPTION="FileCropper is a GUI app which truncates files of any kind. It \
cuts off everything from a given offset (bytes) to the end of the file."
COPYRIGHT="2002 Maurice Michalski"
LICENSE="MIT"
HOMEPAGE="https://github.com/HaikuArchives/FileCropper"
SOURCE_URI="git://github.com/HaikuArchives/FileCropper.git#0dde0f752a"
REVISION="2"

ARCHITECTURES="x86_gcc2 x86 ?x86_64"

PROVIDES="
	filecropper = $portVersion
	app:FileCropper = $portVersion
	"
REQUIRES="
	haiku
	"
BUILD_REQUIRES="
	haiku_devel
	"
BUILD_PREREQUIRES="
	cmd:g++
	cmd:xres
	"

BUILD()
{
	g++ app.cpp mainWindow.cpp -lbe -o FileCropper
	xres -o FileCropper FileCropper.rsrc
	mimeset -f FileCropper
}

INSTALL()
{
	mkdir -p $appsDir
	cp FileCropper $appsDir
	addAppDeskbarSymlink $appsDir/FileCropper
}
