From 0dec1564ccfd8e1831d669698de611cb8f628802 Mon Sep 17 00:00:00 2001 From: fbrosson Date: Fri, 25 Mar 2016 08:06:18 +0000 Subject: [PATCH] smtube: bump to version 16.3.0. --- media-video/smtube/smtube-15.5.10.recipe | 45 ----------------- media-video/smtube/smtube-16.3.0.recipe | 62 ++++++++++++++++++++++++ 2 files changed, 62 insertions(+), 45 deletions(-) delete mode 100644 media-video/smtube/smtube-15.5.10.recipe create mode 100644 media-video/smtube/smtube-16.3.0.recipe diff --git a/media-video/smtube/smtube-15.5.10.recipe b/media-video/smtube/smtube-15.5.10.recipe deleted file mode 100644 index 7af248663..000000000 --- a/media-video/smtube/smtube-15.5.10.recipe +++ /dev/null @@ -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 -} diff --git a/media-video/smtube/smtube-16.3.0.recipe b/media-video/smtube/smtube-16.3.0.recipe new file mode 100644 index 000000000..2d06c1c2d --- /dev/null +++ b/media-video/smtube/smtube-16.3.0.recipe @@ -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//, 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 +}