SUMMARY="A tool to clean temporary and unwanted files"
DESCRIPTION="It cleans your hard disk of 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"
SOURCE_URI="git://github.com/HaikuArchives/FilWip.git#f89df458da79e172ccf243e994b2989d5837c362"
REVISION="5"

LICENSE="SPL"
COPYRIGHT="2002 Ramshankar"

ARCHITECTURES="x86 x86_gcc2"

PROVIDES="
	filwip = $portVersion
	app:FilWip = $portVersion
	"
REQUIRES="
	haiku
	"
BUILD_PREREQUIRES="
	cmd:g++
	cmd:xres
	cmd:make
	"
BUILD_REQUIRES="
	haiku_devel
	makefile_engine
	"

USER_SETTINGS_FILES="settings/FilWip directory keep-old"
POST_INSTALL_SCRIPTS="$relativePostInstallDir/install_plugins.sh"

BUILD()
{
	make $jobArgs -C Source
}

INSTALL()
{
	mkdir -p $appsDir/FilWip
	cp -rf Docs $appsDir/FilWip/Docs
	cp -a FilWip $appsDir/FilWip

	addAppDeskbarSymlink $appsDir/FilWip/FilWip

	mkdir -p $dataDir/FilWip
	cp -rf Plugins $dataDir/FilWip/Plugins

	mkdir -p $postInstallDir
	cp $portDir/additional-files/install_plugins.sh $postInstallDir
}
