SUMMARY="A simple weather application"
DESCRIPTION="This simple weather app was a project for the Google Code-In \
2014/2015.
After supplying a location it will gather data over the internet to display \
a constantly updated forecast for the next days as icons (sunshine, clouds, \
rain, etc.). As a Replicant, the app can be neatly integrated into the \
Desktop."
HOMEPAGE="https://github.com/HaikuArchives/Weather"
COPYRIGHT="2014 George White
	2015 Przemysław Buczkowski
	2015-2018 Janus"
LICENSE="MIT"
REVISION="1"
srcGitRev="26d694ceaebf993c775448c89640ad0fb9718d1e"
SOURCE_URI="https://github.com/HaikuArchives/Weather/archive/$portVersion.tar.gz"
CHECKSUM_SHA256="9ae34bbfd391c624ade107d18ff0c8849be21412d1cb4c82f3b132852e2ed2fc"
SOURCE_DIR="Weather-$portVersion"

ARCHITECTURES="?all"

PROVIDES="
	weather
	app:Weather = $portVersion
	"
REQUIRES="
	haiku
	"

BUILD_REQUIRES="
	haiku_devel
	"
BUILD_PREREQUIRES="
	makefile_engine
	cmd:g++
	cmd:make
	"

BUILD()
{
	make $jobArgs OBJ_DIR=objects
	make bindcatalogs OBJ_DIR=objects
}

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