SUMMARY="A GUI frontend to the command-line downloader wget"
DESCRIPTION="
BeGet is a easy-to-use download manager for the popular command line tool \
wget. BeGet can also accept more than one link at the same time. BeGet saves \
your downloaded files to /home/Downloads
"
HOMEPAGE="http://github.com/HaikuArchives/BeGet"
SRC_URI="git://github.com/HaikuArchives/BeGet#fe8db7ccb6"
REVISION="3"
LICENSE="GNU GPL v2"
COPYRIGHT="1999-2001 Atsushi Takamatsu"

ARCHITECTURES="x86_gcc2 !x86 !x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 !x86 !x86_64"

PROVIDES="
	beget = $portVersion
	app:beget = $portVersion
	"

REQUIRES="
	haiku$secondaryArchSuffix >= $haikuVersion
	cmd:wget$secondaryArchSuffix
	"

BUILD_REQUIRES="
	haiku${secondaryArchSuffix}_devel >= $haikuVersion
	"

BUILD_PREREQUIRES="
	cmd:cmake
	cmd:make
	cmd:gcc$secondaryArchSuffix
	cmd:ld$secondaryArchSuffix
	"

BUILD()
{
	cmake .
	make
}

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