From 02e0695862a95fced6a04d7d852915f5e1ecd8d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Fri, 26 Mar 2021 08:46:56 +0700 Subject: [PATCH] bibletime: clean build flags --- srcpkgs/bibletime/patches/fix-cflags.patch | 13 +++++++++++++ srcpkgs/bibletime/template | 1 + 2 files changed, 14 insertions(+) create mode 100644 srcpkgs/bibletime/patches/fix-cflags.patch diff --git a/srcpkgs/bibletime/patches/fix-cflags.patch b/srcpkgs/bibletime/patches/fix-cflags.patch new file mode 100644 index 00000000000..480c5ca4ac1 --- /dev/null +++ b/srcpkgs/bibletime/patches/fix-cflags.patch @@ -0,0 +1,13 @@ +Index: bibletime-3.0/cmake/BTApplication.cmake +=================================================================== +--- bibletime-3.0.orig/cmake/BTApplication.cmake ++++ bibletime-3.0/cmake/BTApplication.cmake +@@ -41,7 +41,7 @@ IF(WIN32) + ADD_COMPILE_OPTIONS("/Zi") + ELSE() + ADD_COMPILE_OPTIONS( +- "-ggdb" "-Wall" "-Wextra" ++ "-Wall" "-Wextra" "-DNDEBUG" "-DQT_NO_DEBUG" + "$<$,Release>:-O2>" + "$<$,Release>:-DNDEBUG>" + "$<$,Release>:-DQT_NO_DEBUG>" diff --git a/srcpkgs/bibletime/template b/srcpkgs/bibletime/template index 224881c4551..85bcc7f22f8 100644 --- a/srcpkgs/bibletime/template +++ b/srcpkgs/bibletime/template @@ -18,6 +18,7 @@ license="GPL-2.0-or-later" homepage="http://bibletime.info" distfiles="https://github.com/bibletime/bibletime/releases/download/v${version}/bibletime-${version}.tar.xz" checksum=d6beef62ad44b255e3dc4c5e89214bf01a0e85c9136073b0be12fca3d2b22622 +patch_args=-Np1 pre_build() { . /etc/profile.d/10_openjdk11.sh