summaryrefslogtreecommitdiff
path: root/accessibility/hyprsunset/files
diff options
context:
space:
mode:
Diffstat (limited to 'accessibility/hyprsunset/files')
-rw-r--r--accessibility/hyprsunset/files/patch-CMakeLists.txt23
-rw-r--r--accessibility/hyprsunset/files/patch-src_Hyprsunset.cpp25
2 files changed, 25 insertions, 23 deletions
diff --git a/accessibility/hyprsunset/files/patch-CMakeLists.txt b/accessibility/hyprsunset/files/patch-CMakeLists.txt
deleted file mode 100644
index 847fb208217f..000000000000
--- a/accessibility/hyprsunset/files/patch-CMakeLists.txt
+++ /dev/null
@@ -1,23 +0,0 @@
--- Checking for module 'hyprland-protocols>=0.4.0'
--- Package 'hyprland-protocols' not found
-CMake Error at /usr/local/share/cmake/Modules/FindPkgConfig.cmake:645 (message):
- The following required packages were not found:
-
- - hyprland-protocols>=0.4.0
-
---- CMakeLists.txt.orig 2024-10-08 19:23:45 UTC
-+++ CMakeLists.txt
-@@ -98,8 +98,12 @@ protocolwayland()
-
- protocolwayland()
-
--pkg_check_modules(hyprland_protocols_dep REQUIRED IMPORTED_TARGET hyprland-protocols>=0.4.0)
-+pkg_check_modules(hyprland_protocols_dep IMPORTED_TARGET hyprland-protocols>=0.4.0)
-+if(hyprland_protocols_dep_FOUND)
- pkg_get_variable(HYPRLAND_PROTOCOLS hyprland-protocols pkgdatadir)
-+else()
-+set(HYPRLAND_PROTOCOLS "${CMAKE_SOURCE_DIR}/subprojects/hyprland-protocols")
-+endif()
- message(STATUS "hyprland-protocols dependency set to ${HYPRLAND_PROTOCOLS}")
-
- protocolnew("${HYPRLAND_PROTOCOLS}/protocols" "hyprland-ctm-control-v1" true)
diff --git a/accessibility/hyprsunset/files/patch-src_Hyprsunset.cpp b/accessibility/hyprsunset/files/patch-src_Hyprsunset.cpp
new file mode 100644
index 000000000000..f2e7a4496bca
--- /dev/null
+++ b/accessibility/hyprsunset/files/patch-src_Hyprsunset.cpp
@@ -0,0 +1,25 @@
+--- src/Hyprsunset.cpp.orig 2025-07-24 17:32:18 UTC
++++ src/Hyprsunset.cpp
+@@ -5,9 +5,22 @@
+ #include <mutex>
+ #include <thread>
+ #include <chrono>
++#include <signal.h>
+ #include <sys/poll.h>
+ #include <sys/timerfd.h>
++#include <unistd.h>
+ #include <wayland-client-core.h>
++
++#if defined(_LIBCPP_HAS_NO_TIME_ZONE_DATABASE)
++#pragma comment(lib, "date-tz")
++#include <date/tz.h>
++namespace std {
++ namespace chrono {
++ using date::current_zone;
++ using date::zoned_time;
++ }
++}
++#endif
+
+ #define TIMESPEC_NSEC_PER_SEC 1000000000L
+