From 57367a7692a60ba90bf209e695886c59cc64fdac 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 21:06:07 +0700 Subject: [PATCH] loudgain: hardening --- srcpkgs/loudgain/patches/fix-cflags.patch | 20 ++++++++++++++++++++ srcpkgs/loudgain/template | 3 ++- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/loudgain/patches/fix-cflags.patch diff --git a/srcpkgs/loudgain/patches/fix-cflags.patch b/srcpkgs/loudgain/patches/fix-cflags.patch new file mode 100644 index 00000000000..25b2c969bef --- /dev/null +++ b/srcpkgs/loudgain/patches/fix-cflags.patch @@ -0,0 +1,20 @@ +Index: loudgain-0.6.8/CMakeLists.txt +=================================================================== +--- loudgain-0.6.8.orig/CMakeLists.txt ++++ loudgain-0.6.8/CMakeLists.txt +@@ -69,12 +69,12 @@ TARGET_LINK_LIBRARIES(loudgain + ) + + SET_TARGET_PROPERTIES(loudgain PROPERTIES +- COMPILE_FLAGS "-Wall -pedantic -g" ++ COMPILE_FLAGS "-Wall -pedantic" + ) + +-SET(CMAKE_C_FLAGS "-std=gnu99 -D_GNU_SOURCE") ++SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99 -D_GNU_SOURCE") + +-SET(CMAKE_CXX_FLAGS "-std=gnu++11 -D_GNU_SOURCE") ++SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11 -D_GNU_SOURCE") + + INSTALL(TARGETS loudgain DESTINATION ${CMAKE_INSTALL_PREFIX}/bin) + diff --git a/srcpkgs/loudgain/template b/srcpkgs/loudgain/template index f2916788343..00b2d20d27d 100644 --- a/srcpkgs/loudgain/template +++ b/srcpkgs/loudgain/template @@ -1,7 +1,7 @@ # Template file for 'loudgain' pkgname=loudgain version=0.6.8 -revision=1 +revision=2 build_style=cmake hostmakedepends="pkg-config" makedepends="libebur128-devel taglib-devel ffmpeg-devel" @@ -11,6 +11,7 @@ license="BSD-2-Clause" homepage="https://github.com/Moonbase59/loudgain" distfiles="https://github.com/Moonbase59/loudgain/archive/v${version}.tar.gz" checksum=1137c193ad941b366e87c5d84ccc95a7aa8571affc060db0bd1cf72c489aeaee +patch_args=-Np1 post_install() { vlicense COPYING