From c6371c97a25aeaceafe8b96ba8bc01a462ceeaaa Mon Sep 17 00:00:00 2001 From: John Date: Sat, 23 Mar 2019 04:38:07 +0100 Subject: [PATCH] Cataclysm-DDA: preperly set data prefix and install missing log.lua --- srcpkgs/Cataclysm-DDA/patches/lua-cmake.patch | 10 ++++++++++ srcpkgs/Cataclysm-DDA/template | 5 +++-- 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 srcpkgs/Cataclysm-DDA/patches/lua-cmake.patch diff --git a/srcpkgs/Cataclysm-DDA/patches/lua-cmake.patch b/srcpkgs/Cataclysm-DDA/patches/lua-cmake.patch new file mode 100644 index 00000000000..85c4fc4be1f --- /dev/null +++ b/srcpkgs/Cataclysm-DDA/patches/lua-cmake.patch @@ -0,0 +1,10 @@ +--- lua/CMakeLists.txt 2019-03-08 04:34:43.000000000 +0100 ++++ - 2019-03-23 04:29:21.852370856 +0100 +@@ -4,6 +4,7 @@ + SET(CATACLYSM_DDA_LUA_SOURCES + ${CMAKE_SOURCE_DIR}/lua/class_definitions.lua + ${CMAKE_SOURCE_DIR}/lua/autoexec.lua ++ ${CMAKE_SOURCE_DIR}/lua/log.lua + ) + + # test chain diff --git a/srcpkgs/Cataclysm-DDA/template b/srcpkgs/Cataclysm-DDA/template index e84eeb769f3..ac6aa308c3b 100644 --- a/srcpkgs/Cataclysm-DDA/template +++ b/srcpkgs/Cataclysm-DDA/template @@ -1,9 +1,10 @@ # Template file for 'Cataclysm-DDA' pkgname=Cataclysm-DDA version=0.D -revision=1 +revision=2 build_style=cmake -configure_args="-DRELEASE=1 $(vopt_bool backtrace BACKTRACE) $(vopt_bool lua LUA)" +configure_args="-DRELEASE=1 $(vopt_bool backtrace BACKTRACE) $(vopt_bool lua LUA) + -DUSE_HOME_DIR=1 -DPREFIX=/usr" hostmakedepends="pkg-config" makedepends="$(vopt_if tiles 'SDL2_image-devel SDL2_mixer-devel SDL2_ttf-devel') freetype-devel gettext-devel ncurses-devel $(vopt_if lua lua-devel)"