SUMMARY="Tracker add-on to take snapshots of files or folders" 
DESCRIPTION="This Tracker add-on lets you take snapshots of a folder, saving it \
as zip file, with a timestamp, to a preset folder. Snapshots are \
currently saved to /boot/home/Snapshots"
HOMEPAGE="https://github.com/HaikuArchives/SnapShot"
SOURCE_URI="git+https://github.com/HaikuArchives/Snapshot#9ba592336a0d54707b7e5983dce93f8958b61d37"
LICENSE="BSD (3-clause)"
COPYRIGHT="2000 Jonas Sundström"
REVISION="1"
ARCHITECTURES="x86_gcc2"

USER_SETTINGS_FILES="settings/Kirilla/Snapshot/settings"

PROVIDES=" 
	snapshot = $portVersion
	addon:snapshot = $portVersion 
	"

REQUIRES="
	haiku 
	"
		
BUILD_REQUIRES="
	haiku_devel 
	"
	
BUILD_PREREQUIRES="
	makefile_engine
	cmd:gcc
	"

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

INSTALL()
{
	mkdir -p $addOnsDir/Tracker
	cp -a Source/objects/Snapshot $addOnsDir/Tracker
}
