diff --git a/srcpkgs/xstarter/patches/cmake-build-type-none.patch b/srcpkgs/xstarter/patches/cmake-build-type-none.patch new file mode 100644 index 00000000000..4f793e4c473 --- /dev/null +++ b/srcpkgs/xstarter/patches/cmake-build-type-none.patch @@ -0,0 +1,22 @@ +Index: CMakeLists.txt +=================================================================== +--- CMakeLists.txt.orig ++++ CMakeLists.txt +@@ -5,16 +5,8 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.8) + + project(xstarter) + +-if(NOT CMAKE_BUILD_TYPE) +- set(CMAKE_BUILD_TYPE Debug CACHE STRING "Choose the type of build (Debug or Release)" FORCE) +-endif() +- + set(PROJECT_VERSION "0.8.0") +-if (CMAKE_BUILD_TYPE STREQUAL Debug) +- set(CMAKE_C_FLAGS "-g -Wall -pedantic") +-else() +- set(CMAKE_C_FLAGS "-Wall -pedantic -O3") +-endif() ++set(CMAKE_C_FLAGS "-Wall -pedantic ${CMAKE_C_FLAGS}") + set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/bin") + + set (CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake") diff --git a/srcpkgs/xstarter/template b/srcpkgs/xstarter/template index aa9a47e45e5..4363d36e3c3 100644 --- a/srcpkgs/xstarter/template +++ b/srcpkgs/xstarter/template @@ -1,7 +1,7 @@ # Template file for 'xstarter' pkgname=xstarter version=0.8.0 -revision=1 +revision=2 build_style=cmake hostmakedepends="pkg-config" makedepends="glib-devel ncurses-devel"