SUMMARY="Tracker add-on for git"
DESCRIPTION="Tracker Addon for Git Version Control System. \
TrackGit provides user with GUIs for various Git commands. The implementation \
was done using LibGit2. TrackGit uses the Dynamic population of menu."
HOMEPAGE="https://github.com/Hrily/TrackGit"
COPYRIGHT="2018 Hrishi Hiraskar
	2018 HaikuArchives Team"
LICENSE="MIT"
REVISION="2"
srcGitRev="e38a8e78b4a1f3c5dd6431b4fe2d07e8668227d0"
SOURCE_URI="https://github.com/HaikuArchives/TrackGit/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="64ffad6aad5b81f3b1445f61701138d0808d6144ed8f753906151a3d412ccaaa"
SOURCE_FILENAME="TrackGit-$srcGitRev.tar.gz"
SOURCE_DIR="TrackGit-$srcGitRev"

ARCHITECTURES="all"

PROVIDES="
	trackgit = $portVersion
	app:TrackGit = $portVersion
	"
REQUIRES="
	haiku
	lib:libgit2
	lib:libssh2
	"

BUILD_REQUIRES="
	haiku_devel
	devel:libgit2 >= 0.27
	"
BUILD_PREREQUIRES="
	makefile_engine
	cmd:gcc
	cmd:make
	"

BUILD()
{
	make $jobArgs OBJ_DIR=objects
}

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