SUMMARY="An app to clean all temporary and unwanted files"
DESCRIPTION="
It cleans your hard disk of all unwanted files such as left-over temporary \
files, cache files of internet sessions, logs, history files and the like. It \
works with easy to write text files that include information about where the \
files to delete are.
" 
HOMEPAGE="https://sites.google.com/site/appfilwip/home"
SRC_URI="git://github.com/HaikuArchives/FilWip.git#8ec265e771019d31ed63be69cb8cc0d8a271f19b"
REVISION="2"

LICENSE="SPL"
COPYRIGHT="2002 Ramshankar"

ARCHITECTURES="x86 x86_gcc2"


PROVIDES="
	filwip = $portVersion
	app:filwip = $portVersion
	cmd:filwip = $portVersion
	"

REQUIRES="
	haiku >= $haikuVersion
	"

BUILD_PREREQUIRES="
	cmd:g++
	cmd:xres
	"
BUILD_REQUIRES="
	haiku_devel >= $haikuVersion
	"

USER_SETTINGS_FILES="
	settings/FilWip_settings
	"

BUILD()
{
	cd Source
	g++ -o ../FilWip -lbe -ltranslation -ltracker *.cpp */*.cpp
	rc -o ../FilWip.rsrc FilWip.rdef
	xres -o ../FilWip ../FilWip.rsrc
	mimeset -f ../FilWip
}

INSTALL()
{
	mkdir -p $appsDir/FilWip
	mkdir -p $binDir

	cp -rf Plugins $appsDir/FilWip/Plugins
	cp FilWip $appsDir/FilWip/FilWip

	addAppDeskbarSymlink $appsDir/FilWip/FilWip
	ln -s $appsDir/FilWip/FilWip $binDir/FilWip
}
