summaryrefslogtreecommitdiff
path: root/x11-wm/hyprland/files/patch-hyprpm
blob: 308729eb409b1f2abcc5c18ae95421d716545dd2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Avoid hyprpm rebuilding Hyprland outside of ports

--- hyprpm/src/core/PluginManager.cpp.orig	2024-04-14 18:48:28 UTC
+++ hyprpm/src/core/PluginManager.cpp
@@ -316,9 +316,6 @@ eHeadersErrors CPluginManager::headersValid() {
 eHeadersErrors CPluginManager::headersValid() {
     const auto HLVER = getHyprlandVersion();
 
-    if (!std::filesystem::exists(DataState::getHeadersPath() + "/share/pkgconfig/hyprland.pc"))
-        return HEADERS_MISSING;
-
     // find headers commit
     std::string cmd     = std::format("PKG_CONFIG_PATH=\"{}/share/pkgconfig\" pkgconf --cflags --keep-system-cflags hyprland", DataState::getHeadersPath());
     auto        headers = execAndGet(cmd.c_str());