mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-01 18:32:58 +02:00
New package: jellyfin-media-player-1.12.0
This commit is contained in:
parent
039d74048f
commit
28a8a859cf
2 changed files with 75 additions and 0 deletions
58
srcpkgs/jellyfin-media-player/patches/no-update-check.patch
Normal file
58
srcpkgs/jellyfin-media-player/patches/no-update-check.patch
Normal file
|
@ -0,0 +1,58 @@
|
||||||
|
disable the internal update check, we can do this via our methods
|
||||||
|
|
||||||
|
source: https://aur.archlinux.org/cgit/aur.git/tree/disable-update-check.patch?h=jellyfin-media-player
|
||||||
|
|
||||||
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||||
|
index 52b98a3..bf41488 100644
|
||||||
|
--- a/CMakeLists.txt
|
||||||
|
+++ b/CMakeLists.txt
|
||||||
|
@@ -10,9 +10,14 @@ project(JellyfinMediaPlayer CXX C)
|
||||||
|
# we want this to be able to run clang-tidy
|
||||||
|
set(CMAKE_EXPORT_COMPILE_COMMANDS ON CACHE BOOL "" FORCE)
|
||||||
|
|
||||||
|
+option(CHECK_FOR_UPDATES "Enable checking for new versions of Jellyfin Media Player" ON)
|
||||||
|
option(OPENELEC "Make an OpenELEC build" OFF)
|
||||||
|
option(LINUX_X11POWER "Enable non D-Bus screensaver management" OFF)
|
||||||
|
|
||||||
|
+if (NOT CHECK_FOR_UPDATES)
|
||||||
|
+ add_definitions(-DDISABLE_UPDATE_CHECK)
|
||||||
|
+endif()
|
||||||
|
+
|
||||||
|
if((NOT LINUX_X11POWER) AND (UNIX AND (NOT APPLE)))
|
||||||
|
set(LINUX_DBUS ON)
|
||||||
|
endif()
|
||||||
|
diff --git a/src/settings/SettingsComponent.cpp b/src/settings/SettingsComponent.cpp
|
||||||
|
index 9beb844..8de385c 100644
|
||||||
|
--- a/src/settings/SettingsComponent.cpp
|
||||||
|
+++ b/src/settings/SettingsComponent.cpp
|
||||||
|
@@ -305,6 +305,10 @@ void SettingsComponent::loadConf(const QString& path, bool storage)
|
||||||
|
getSection(SETTINGS_SECTION_MAIN)->setValue("autodetectCertBundle", "true");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
+
|
||||||
|
+#ifdef DISABLE_UPDATE_CHECK
|
||||||
|
+ getSection(SETTINGS_SECTION_MAIN)->setValueHidden("checkForUpdates", "true");
|
||||||
|
+#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
diff --git a/src/system/SystemComponent.cpp b/src/system/SystemComponent.cpp
|
||||||
|
index fa58fee..970c545 100644
|
||||||
|
--- a/src/system/SystemComponent.cpp
|
||||||
|
+++ b/src/system/SystemComponent.cpp
|
||||||
|
@@ -360,6 +360,7 @@ QString SystemComponent::getNativeShellScript()
|
||||||
|
/////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
void SystemComponent::checkForUpdates()
|
||||||
|
{
|
||||||
|
+#ifndef DISABLE_UPDATE_CHECK
|
||||||
|
if (SettingsComponent::Get().value(SETTINGS_SECTION_MAIN, "checkForUpdates").toBool()) {
|
||||||
|
#if !defined(Q_OS_WIN) && !defined(Q_OS_MAC)
|
||||||
|
QNetworkAccessManager *manager = new QNetworkAccessManager(this);
|
||||||
|
@@ -374,6 +375,7 @@ void SystemComponent::checkForUpdates()
|
||||||
|
emit updateInfoEmitted("SSL_UNAVAILABLE");
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
+#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
/////////////////////////////////////////////////////////////////////////////////////////
|
17
srcpkgs/jellyfin-media-player/template
Normal file
17
srcpkgs/jellyfin-media-player/template
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
# Template file for 'jellyfin-media-player'
|
||||||
|
pkgname=jellyfin-media-player
|
||||||
|
version=1.12.0
|
||||||
|
revision=1
|
||||||
|
build_style=cmake
|
||||||
|
build_helper="qmake"
|
||||||
|
configure_args="-DCHECK_FOR_UPDATES=OFF"
|
||||||
|
hostmakedepends="python3 qt5-host-tools qt5-qmake"
|
||||||
|
makedepends="qt5-webchannel-devel qt5-webengine-devel qt5-declarative-devel
|
||||||
|
qt5-location-devel qt5-x11extras-devel mpv-devel libcec-devel SDL2-devel"
|
||||||
|
short_desc="Jellyfin desktop client"
|
||||||
|
maintainer="classabbyamp <void@placeviolette.net>"
|
||||||
|
license="GPL-3.0-or-later"
|
||||||
|
homepage="https://github.com/jellyfin/jellyfin-media-player"
|
||||||
|
changelog="https://github.com/jellyfin/jellyfin-media-player/releases"
|
||||||
|
distfiles="https://github.com/jellyfin/jellyfin-media-player/archive/refs/tags/v${version}.tar.gz"
|
||||||
|
checksum=a90c8ced214f7f66f440bb690c64ac333e18bdfb5bc54d845ea5fc2d04f31ed5
|
Loading…
Add table
Reference in a new issue