SUMMARY="A backup application for Haiku"
DESCRIPTION="A backup application for Haiku."
HOMEPAGE="https://gitlab.com/kallisti5/backup"
COPYRIGHT="2013 Alexander von Gluck IV"
LICENSE="MIT"
REVISION="6"
srcGitRev="7708212786526b9a5370e57e32a1032053d7345a"
SOURCE_URI="$HOMEPAGE/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="86a415b9d6bcf3b8b255958df75dbd4c97ef397c3195ec4694a7bb959bdca1b2"
SOURCE_DIR="backup-$srcGitRev"

ARCHITECTURES="!all"

PROVIDES="
	backup = $portVersion
	app:Backup = $portVersion
	"
REQUIRES="
	haiku
	"

BUILD_REQUIRES="
	haiku_devel
	"
BUILD_PREREQUIRES="
	makefile_engine
	cmd:gcc
	cmd:make
	"

BUILD()
{
	make OBJ_DIR=objects \
		BUILDHOME=`finddir B_SYSTEM_DEVELOP_DIRECTORY`
}

INSTALL()
{
	mkdir -p $appsDir
	cp objects/backup $appsDir/Backup
	addAppDeskbarSymlink $appsDir/Backup
}
