spotify-qt, new recipe (#5150)

This commit is contained in:
Schrijvers Luc
2020-07-04 11:17:31 +02:00
committed by GitHub
parent 3606faf795
commit e3679673b5
2 changed files with 101 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
resource app_signature "application/x-vnd.spotify_qt";
resource app_flags B_SINGLE_LAUNCH | B_ARGV_ONLY;
resource app_version {
major = @MAJOR@,
middle = @MIDDLE@,
variety = B_APPV_FINAL,
internal = 0,
short_info = "SpotifyQt",
long_info = "A Spotify client using Qt"
};
resource vector_icon {
$"6E63696602034CAF50052104020DB986B34DB986B34DB986B34DB986B34DB986"
$"B34DBB99B34D40B34DBDACB34DC3E6B34DCC32B34DC80CB34DCC32B773CC32BF"
$"BFCC32BB99CC32C1D3CC32C5F9CC32C3E6CC32C5F9CC32C5F9CC32C5F9CA1FC8"
$"0CC5F9CC32C80CCA1FC3E6CC32BFBFCC32C1D3CC32BB99CC32B34DCC32B773CC"
$"32B34DC80CB34DBFBFB34DC3E6B34DBDACB34DB986B34DBB99B560B773B986B3"
$"4DB773B560B986B34D0002B90CBC33B90CBC33BE46BAF1C6EBBD98C30CBB88C6"
$"EBBD980002B9B8BFC6B9B8BFC6BE2FBEA5C57FC134C22CBF43C57FC1340002B9"
$"F6C32AB9F6C32ABDE8C236C449C44FC180C2A5C449C44F040A000100000A0101"
$"011001178522040A0101021001178422040A010103100117832204"
};

View File

@@ -0,0 +1,77 @@
SUMMARY="A Spotify client using Qt"
DESCRIPTION="A lighter alternative to the official client, inspired by \
spotify-tui.
Much like spotify-tui, you need an actual Spotify client running, for example \
spotifyd, which can be configured from within the app. Also like other \
clients, controlling music playback requires Spotify Premium."
HOMEPAGE="https://github.com/kraxarn/spotify-qt"
COPYRIGHT="2020 Kraxarn"
LICENSE="GNU GPL v3"
REVISION="1"
SOURCE_URI="https://github.com/kraxarn/spotify-qt/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="ca9b4af238f4b7392524c93bee4093db656cf240f5ef490c6f569238dec35455"
SOURCE_FILENAME="spotify-qt-v$portVersion.tar.gz"
SOURCE_DIR="spotify-qt-$portVersion"
ADDITIONAL_FILES="spotify-qt.rdef.in"
ARCHITECTURES="!x86_gcc2 x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
spotify_qt$secondaryArchSuffix = $portVersion
cmd:spotify_qt
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libQt5Core$secondaryArchSuffix
lib:libQt5DBus$secondaryArchSuffix
lib:libQt5Gui$secondaryArchSuffix
lib:libQt5Network$secondaryArchSuffix
lib:libQt5Svg$secondaryArchSuffix
lib:libQt5Widgets$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libQt5Core$secondaryArchSuffix
devel:libQt5DBus$secondaryArchSuffix
devel:libQt5Gui$secondaryArchSuffix
devel:libQt5Network$secondaryArchSuffix
devel:libQt5Svg$secondaryArchSuffix
devel:libQt5Widgets$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:gcc$secondaryArchSuffix
cmd:make
cmd:qdbuscpp2xml$secondaryArchSuffix
"
BUILD()
{
mkdir -p build && cd build
cmake -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=$appsDir ..
make $jobArgs
}
INSTALL()
{
cd build
make install
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
sed \
-e "s|@MAJOR@|$MAJOR|" \
-e "s|@MIDDLE@|$MIDDLE|" \
$portDir/additional-files/spotify-qt.rdef.in > spotify-qt.rdef
mv $appsDir/bin/spotify-qt $appsDir/SpotifyQt
rmdir $appsDir/bin
addResourcesToBinaries spotify-qt.rdef \
$appsDir/SpotifyQt
addAppDeskbarSymlink $prefix/bin/spotify-qt SpotifyQt
}