Merge pull request #519 from fbrosson/smtube

smtube: bump to version 16.3.0.
This commit is contained in:
Jérôme Duval
2016-04-07 14:54:46 +02:00
2 changed files with 62 additions and 45 deletions

View File

@@ -1,45 +0,0 @@
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"
COPYRIGHT="2006-2015 Ricardo Villalba"
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="http://sourceforge.net/projects/smplayer/files/SMTube/15.5/smtube-$portVersion.tar.bz2"
CHECKSUM_SHA256="7f31a0e32b75c027851366cb92fa537cb7257f299a916e6191d5596d2058c2c5"
ARCHITECTURES="x86_gcc2 x86"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
smtube$secondaryArchSuffix = $portVersion
cmd:smtube$secondaryArchSuffix
"
REQUIRES="
haiku$secondaryArchSuffix
libqt4$secondaryArchSuffix >= 4.8
lib:libz$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
}

View File

@@ -0,0 +1,62 @@
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://www.smtube.org/"
COPYRIGHT="2006-2016 Ricardo Villalba"
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="https://downloads.sf.net/smplayer/smtube-$portVersion.tar.bz2"
CHECKSUM_SHA256="6ac038645eb03f7d8069713312c99f5ff7d8d0d6b4550b206b87ac6e1a941570"
ARCHITECTURES="!x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="!x86_gcc2 x86"
# On x86_gcc2 we don't want to install the commands in bin/<arch>/, but in bin/.
commandSuffix=$secondaryArchSuffix
commandBinDir=$binDir
if [ "$targetArchitecture" = x86_gcc2 ]; then
commandSuffix=
commandBinDir=$prefix/bin
fi
PROVIDES="
smtube$secondaryArchSuffix = $portVersion
app:SMTube$commandSuffix = $portVersion
cmd:smtube$commandSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
libqt4$secondaryArchSuffix >= 4.8
lib:libz$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()
{
smtubeDir=$appsDir/SMPlayer
mkdir -p $smtubeDir
cp src/smtube $smtubeDir/smtube$commandSuffix
mkdir -p $commandBinDir
if [ -n "$commandSuffix" ]; then
mkdir -p $prefix/bin
symlinkRelative -s $smtubeDir/smtube$commandSuffix $prefix/bin
fi
symlinkRelative -s $smtubeDir/smtube$commandSuffix $commandBinDir/smtube
addAppDeskbarSymlink $smtubeDir/smtube$commandSuffix SMTube$commandSuffix
}