SpotifyQt, bump to src checkout, fixing crash on startup (#5179)

This commit is contained in:
Schrijvers Luc
2020-07-09 09:56:53 +02:00
committed by GitHub
parent bb06b15b33
commit b69f26c29a
2 changed files with 12 additions and 11 deletions

View File

@@ -5,7 +5,7 @@ resource app_flags B_SINGLE_LAUNCH | B_ARGV_ONLY;
resource app_version { resource app_version {
major = @MAJOR@, major = @MAJOR@,
middle = @MIDDLE@, middle = @MIDDLE@,
variety = B_APPV_FINAL, variety = B_APPV_DEVELOPMENT,
internal = 0, internal = 0,
short_info = "SpotifyQt", short_info = "SpotifyQt",
long_info = "A Spotify client using Qt" long_info = "A Spotify client using Qt"

View File

@@ -7,19 +7,20 @@ clients, controlling music playback requires Spotify Premium."
HOMEPAGE="https://github.com/kraxarn/spotify-qt" HOMEPAGE="https://github.com/kraxarn/spotify-qt"
COPYRIGHT="2020 Kraxarn" COPYRIGHT="2020 Kraxarn"
LICENSE="GNU GPL v3" LICENSE="GNU GPL v3"
REVISION="2" REVISION="1"
SOURCE_URI="https://github.com/kraxarn/spotify-qt/archive/v$portVersion.tar.gz" srcGitRev="cc11ce0d1213f191847a6ad44e28be0b6a05a085"
CHECKSUM_SHA256="ca9b4af238f4b7392524c93bee4093db656cf240f5ef490c6f569238dec35455" SOURCE_URI="https://github.com/kraxarn/spotify-qt/archive/$srcGitRev.tar.gz"
SOURCE_FILENAME="spotify-qt-v$portVersion.tar.gz" CHECKSUM_SHA256="2c431ee1cb881729a98951965bbed27a56e12056e13c6cef05a433413a484e6f"
SOURCE_DIR="spotify-qt-$portVersion" SOURCE_FILENAME="spotify-qt-v$portVersion-$srcGitRev.tar.gz"
ADDITIONAL_FILES="spotify-qt.rdef.in" SOURCE_DIR="spotify-qt-$srcGitRev"
ADDITIONAL_FILES="spotify_qt.rdef.in"
ARCHITECTURES="!x86_gcc2 x86_64" ARCHITECTURES="!x86_gcc2 x86_64"
SECONDARY_ARCHITECTURES="x86" SECONDARY_ARCHITECTURES="x86"
PROVIDES=" PROVIDES="
spotify_qt$secondaryArchSuffix = $portVersion spotify_qt$secondaryArchSuffix = $portVersion
cmd:spotify_qt app:SpotifyQt
" "
REQUIRES=" REQUIRES="
haiku$secondaryArchSuffix haiku$secondaryArchSuffix
@@ -61,16 +62,16 @@ INSTALL()
make install make install
local MAJOR="`echo "$portVersion" | cut -d. -f1`" local MAJOR="`echo "$portVersion" | cut -d. -f1`"
local MIDDLE="`echo "$portVersion" | cut -d. -f2`" local MIDDLE="`echo "$portVersion" | cut -d. -f2 | cut -c 1-1`"
sed \ sed \
-e "s|@MAJOR@|$MAJOR|" \ -e "s|@MAJOR@|$MAJOR|" \
-e "s|@MIDDLE@|$MIDDLE|" \ -e "s|@MIDDLE@|$MIDDLE|" \
$portDir/additional-files/spotify-qt.rdef.in > spotify-qt.rdef $portDir/additional-files/spotify_qt.rdef.in > spotify_qt.rdef
mv $appsDir/bin/spotify-qt $appsDir/SpotifyQt mv $appsDir/bin/spotify-qt $appsDir/SpotifyQt
rmdir $appsDir/bin rmdir $appsDir/bin
addResourcesToBinaries spotify-qt.rdef \ addResourcesToBinaries spotify_qt.rdef \
$appsDir/SpotifyQt $appsDir/SpotifyQt
addAppDeskbarSymlink $appsDir/SpotifyQt addAppDeskbarSymlink $appsDir/SpotifyQt