SUMMARY="YouTube browser for SMPlayer"
DESCRIPTION="SMTube is an application that allows to browse, search and play \
YouTube videos. Videos are played back with a media player (by default \
SMPlayer) instead of a flash player, this allows better performance, \
particularly with HD content."
HOMEPAGE="http://smtube.sourceforge.net"
LICENSE="GNU GPL v2"
COPYRIGHT="2006-2015 Ricardo Villalba"
SOURCE_URI="http://sourceforge.net/projects/smplayer/files/SMTube/15.5/smtube-$portVersion.tar.bz2"
CHECKSUM_SHA256="7f31a0e32b75c027851366cb92fa537cb7257f299a916e6191d5596d2058c2c5"
REVISION="1"

ARCHITECTURES="x86_gcc2 x86"
SECONDARY_ARCHITECTURES="x86"

PROVIDES="
	smtube$secondaryArchSuffix = $portVersion
	cmd:smtube$secondaryArchSuffix
	"

REQUIRES="
	haiku$secondaryArchSuffix
	libqt4$secondaryArchSuffix >= 4.8
	lib:libz$secondaryArchSuffix
	lib:libstdc++$secondaryArchSuffix
	lib:libgcc_s$secondaryArchSuffix
	"

BUILD_REQUIRES="
	libqt4${secondaryArchSuffix}_devel >= 4.8
	devel:libz$secondaryArchSuffix
	"

BUILD_PREREQUIRES="
	haiku${secondaryArchSuffix}_devel
	cmd:gcc$secondaryArchSuffix
	cmd:make
	"

BUILD()
{
	make $jobArgs
}

INSTALL()
{
	mkdir -p $appsDir/SMPlayer
	cp src/smtube $appsDir/SMPlayer
}
