summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandre Bouvier2023-04-09 09:19:21 +0200
committerAlexandre Bouvier2023-04-09 09:19:21 +0200
commit0e5982733f4b7f091964518e7abcd583163ccc53 (patch)
treeefdbf15379ec1fc7254c8732c0f3827ca79596be
parent123cd41bb07376a85f365882f8de33910a07ea6e (diff)
downloadaur-0e5982733f4b7f091964518e7abcd583163ccc53.tar.gz
:$
-rw-r--r--PKGBUILD10
1 files changed, 5 insertions, 5 deletions
diff --git a/PKGBUILD b/PKGBUILD
index fbcbebbd2318..4424c5e1363a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -27,8 +27,6 @@ makedepends=(
'fast_float'
'ffmpeg'
'git'
- # 'libbacktrace'
- # 'libxrandr'
'sdl2'
'soundtouch'
)
@@ -54,18 +52,20 @@ pkgver() {
prepare() {
cd $_pkgname
- # sed -i '/ccache/d' CMakeLists.txt
- sed -i '/USE_GCC/s/AND CMAKE_INTERPROCEDURAL_OPTIMIZATION//' common/CMakeLists.txt
- sed -i '/USE_SYSTEM_LIBS/s/OFF/ON/' cmake/BuildParameters.cmake
git config submodule.3rdparty/glslang/glslang.url ../glslang
git config submodule.3rdparty/libchdr/libchdr.url ../libchdr
git config submodule.3rdparty/vulkan-headers.url ../vulkan-headers
git -c protocol.file.allow=always submodule update
+ sed -i '/ccache/d' CMakeLists.txt
+ sed -i '/USE_GCC/s/AND CMAKE_INTERPROCEDURAL_OPTIMIZATION//' common/CMakeLists.txt
+ sed -i '/USE_SYSTEM_LIBS/s/OFF/ON/' cmake/BuildParameters.cmake
}
build() {
cmake -S $_pkgname -B build \
-DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_C_FLAGS_RELEASE="-DNDEBUG" \
+ -DCMAKE_CXX_FLAGS_RELEASE="-DNDEBUG" \
-DLIBRETRO=ON \
-Wno-dev
cmake --build build