SUMMARY="A cloud file syncing application"
DESCRIPTION="PonyExpress is a cloud file syncing application. \
It currently supports DropBox full folder syncing.
The application is still in Alpha and requires more testing \
so please take care using it for important data."
HOMEPAGE="https://github.com/wattoc/PonyExpress"
COPYRIGHT="2021 Craig Watson"
LICENSE="BSD (3-clause)"
REVISION="1"
SOURCE_URI="https://github.com/wattoc/PonyExpress/archive/refs/tags/v$portVersion.tar.gz"
CHECKSUM_SHA256="02a4da1626cbbb5d473684a028360568240093b90a8f7e5ec8ee887c7d36003b"
SOURCE_DIR="PonyExpress-$portVersion"

ARCHITECTURES="all !x86"

USER_SETTINGS_FILES="settings/ponyexpress.settings"

PROVIDES="
	ponyexpress = $portVersion
	app:ponyexpress = $portVersion
	"
REQUIRES="
	haiku
	lib:libcurl$secondaryArchSuffix
	"

BUILD_REQUIRES="
	haiku_devel
	devel:libcurl$secondaryArchSuffix
	"
BUILD_PREREQUIRES="
	makefile_engine
	cmd:gcc
	cmd:make
	"

BUILD()
{
	make $jobArgs
}

INSTALL()
{
	mkdir -p $appsDir
	cp -a PonyExpress $appsDir
	addAppDeskbarSymlink $appsDir/PonyExpress
}
