Bugfix: Fixes #272, Arch Linux now produces debug packages that break the build

This commit is contained in:
Rory Fewell
2024-02-10 00:53:40 +00:00
parent d710ede9f0
commit fdbf6ea456
2 changed files with 9 additions and 0 deletions

View File

@@ -168,6 +168,14 @@ function(wintc_configure_and_install_packaging)
string(APPEND ARCH_DEPENDENCIES ")")
endif()
# Handle build options
#
if (${CMAKE_BUILD_TYPE} STREQUAL "Release")
set(ARCH_PKGBUILD_OPTIONS "strip !debug")
else()
set(ARCH_PKGBUILD_OPTIONS "!strip !debug")
endif()
configure_file(${WINTC_ARCH_PKGBUILD_IN_PATH} PKGBUILD @ONLY)
elseif (${WINTC_PKGMGR} STREQUAL "deb")
message(STATUS "Outputting build for Debian packaging")

View File

@@ -5,6 +5,7 @@ pkgdesc="@PROJECT_DESCRIPTION@"
arch=("@ARCH_ARCHITECTURE@")
url="https://github.com/rozniak/xfce-winxp-tc"
license=("@ARCH_LICENCE@")
options=(@ARCH_PKGBUILD_OPTIONS@)
package()
{