mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 06:28:55 +02:00
63 lines
1.7 KiB
Bash
63 lines
1.7 KiB
Bash
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
|
|
}
|