From 1b7a3b8217a9fc9ab3fbe6d15dd193b1380178a8 Mon Sep 17 00:00:00 2001
From: psykose <alice@ayaya.dev>
Date: Sat, 20 Aug 2022 19:00:47 +0000
Subject: [PATCH] community/nvui: disable werror

---
 community/nvui/APKBUILD        |  2 ++
 community/nvui/no-werror.patch | 13 +++++++++++++
 2 files changed, 15 insertions(+)
 create mode 100644 community/nvui/no-werror.patch

diff --git a/community/nvui/APKBUILD b/community/nvui/APKBUILD
index a887ab112c2f..dfd50e6d8065 100644
--- a/community/nvui/APKBUILD
+++ b/community/nvui/APKBUILD
@@ -19,6 +19,7 @@ makedepends="
 	qt5-qtsvg-dev
 	"
 source="https://github.com/rohit-px2/nvui/archive/v$pkgver/nvui-$pkgver.tar.gz
+	no-werror.patch
 	fhs-paths.patch
 	use-sane-animation-time.patch
 	nvui.sh
@@ -63,6 +64,7 @@ package() {
 
 sha512sums="
 e5e1eeb7f63455bb9d5b128c10056940c903a428329ad6634f6739d707faa7b6316d2fc8e7572b2ef4ee8281c36e2bac4828e2916c13298ba1abca9bc6a59649  nvui-0.2.1.tar.gz
+6cf4775c5e9348d40399aff2b3757c96c75d6d7aef2b8a6fee22beef9f9c3ef46c20e8b9309b3719e177d89eba04077d80b5a682310357c7704ae3e72dee541a  no-werror.patch
 3f657ee1d23b0d3e9b2fe024f11527ced00359505391266510823c3b0e077e547decddc5d40b1e6eba796603062b5771a22669995ffb73091370796263006bb7  fhs-paths.patch
 dd60e7c60a3269d777b9fd0dd11d89a8ebb796cb23dd403cb66a1a6b9b527d356216b060c849b1760d8aef1b575a95bf57043e9986081329baefc229366bb0c0  use-sane-animation-time.patch
 d781d307ad39d53f91660455fe0c6bed4698b9c70daca178652ba72d2326005dc47cfbb039c62ef97b165ae5be96e49c2e3e837f9674689b9717a336db65f7c2  nvui.sh
diff --git a/community/nvui/no-werror.patch b/community/nvui/no-werror.patch
new file mode 100644
index 000000000000..e4c18b3b1682
--- /dev/null
+++ b/community/nvui/no-werror.patch
@@ -0,0 +1,13 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index d854ed9..30590a4 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -28,7 +28,7 @@ if(MSVC)
+   add_compile_options(/W4 /WX /wd5054 /wd4459 /wd4458 /wd4244 /wd4127 /wd4702)
+   set(CMAKE_CXX_FLAGS_RELEASE /O2 /DNDEBUG)
+ else()
+-  add_compile_options(-Wall -Wextra -pedantic -Werror -Wfatal-errors -Wno-language-extension-token)
++  add_compile_options(-Wall -Wextra -pedantic -Wno-language-extension-token)
+   set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3 -DNDEBUG")
+ endif()
+ set(CMAKE_CXX_STANDARD 20)
-- 
GitLab