Changeset View
Standalone View
package.yml
- This file was added.
| name : cataclysm | |||||
| version : 0.15.3 | |||||
| release : 1 | |||||
| source : | |||||
| - https://github.com/CleverRaven/Cataclysm-DDA/archive/refs/tags/0.F-3.zip : 57b6db4a1c800351e11f98db6f8d7b7180378cb66ff83dfe74c6071f6b001715 | |||||
| homepage : https://cataclysmdda.org/ | |||||
| license : CC-BY-SA-3.0 | |||||
Staudey: Seems like there is also
```
- GPL-2.0-or-later WITH Font-exception-2.0 #GNU Unifont
- MIT… | |||||
| component : | |||||
| - games.rpg | |||||
| - tiles: games.rpg | |||||
| - common: system.utils | |||||
StaudeyUnsubmitted Done Inline ActionsI think games.rpg would be more fitting for the -common package as well Staudey: I think `games.rpg` would be more fitting for the `-common` package as well | |||||
| summary : | |||||
| - Turn-based survival game played in the terminal. | |||||
| - tiles: Turn-based survival game with GUI and tilesets. | |||||
| - common: Common files for cataclysm and cataclysm-tiles | |||||
| description: | | |||||
| Cataclysm: Dark Days Ahead is a turn-based survival game set in a post-apocalyptic world. While some have described it as a "zombie game", there is far more to Cataclysm than that. Struggle to survive in a harsh, persistent, procedurally generated world. Scavenge the remnants of a dead civilization for food, equipment, or, if you are lucky, a vehicle with a full tank of gas to get you the hell out of Dodge. Fight to defeat or escape from a wide variety of powerful monstrosities, from zombies to giant insects to killer robots and things far stranger and deadlier, and against the others like yourself, who want what you have... | |||||
| clang : true | |||||
| builddeps : | |||||
| - pkgconfig(freetype2) | |||||
StaudeyUnsubmitted Done Inline ActionsNote that A-Z before a-z, so the SDL2- stuff comes first. Staudey: Note that A-Z before a-z, so the `SDL2-` stuff comes first. | |||||
| - pkgconfig(sdl2) | |||||
| - pkgconfig(SDL2_image) | |||||
| - pkgconfig(SDL2_mixer) | |||||
| - pkgconfig(SDL2_ttf) | |||||
| rundeps : | |||||
| - cataclysm-common | |||||
| - tiles: | |||||
| - cataclysm-common | |||||
| patterns : | |||||
| - common: | |||||
| - /* | |||||
| - main : | |||||
| - /usr/bin/cataclysm | |||||
| - tiles: | |||||
| - /usr/bin/cataclysm-tiles | |||||
| - /usr/share/cataclysm-dda/gfx/ | |||||
| - /usr/share/cataclysm-dda/sound/ | |||||
| - /usr/share/applications/ | |||||
| - /usr/share/metainfo/ | |||||
| - /usr/share/icons/ | |||||
| setup : | | |||||
| patch -p1 < $pkgfiles/0001-Suppress-compile-warnings.patch | |||||
StaudeyUnsubmitted Done Inline ActionsWe can clean this up by putting those patches in a series file and using %apply_patches Staudey: We can clean this up by putting those patches in a `series` file and using `%apply_patches`… | |||||
| patch -p1 < $pkgfiles/0002-Update-catch.hpp-to-2.13.7.patch | |||||
| patch -p1 < $pkgfiles/0003-Cast-const-char-in-sdl_font.cpp.patch | |||||
| export builddir=$PWD | |||||
StaudeyUnsubmitted Done Inline ActionsYou can use our own variable $workdir for this (so you don't have to export anything, just use cp -R $workdir and so on. [Note: only if we can't find a way to do this whole thing without having two copies of the source, see below] Staudey: You can use our own variable `$workdir` for this (so you don't have to export anything, just… | |||||
| cd .. | |||||
| cp -R $builddir ./cli-build | |||||
| cp -R $builddir ./tiles-build | |||||
Done Inline ActionsFrom looking at their repo it seems like at least USE_HOME_DIR and LOCALIZE are set to "ON" by default. Can we remove these options, or does something during the setup/build override those defaults? Staudey: From looking at their repo it seems like at least `USE_HOME_DIR` and `LOCALIZE` are set to "ON"… | |||||
Not Done Inline ActionsI copied the build options from the Cataclysm build on AUR, very possible they just opted to specify everything, I'll try without and check if everything is good. Icosahunter: I copied the build options from the Cataclysm build on AUR, very possible they just opted to… | |||||
Done Inline ActionsI tried without USE_HOME_DIR and it didn't find my world so looks like it is needed, and I didn't see it set anywhere in the MAKEFILE so makes sense. LOCALIZE does appear to be set to 1 by default and after building with it removed and switching languages it did change the language in game, so we should be good to go here. Icosahunter: I tried without USE_HOME_DIR and it didn't find my world so looks like it is needed, and I… | |||||
| build : | | |||||
| cd ./cli-build | |||||
| %make CLANG=1 CCACHE=1 PREFIX=/usr RELEASE=1 USE_HOME_DIR=1 BACKTRACE=0 RUNTESTS=0 ZLEVELS=1 LOCALIZE=1 LANGUAGES=all | |||||
StaudeyUnsubmitted Done Inline Actions
export COMMON_OPTIONS="CLANG=1 CCACHE=1 PREFIX=/usr RELEASE=1 USE_HOME_DIR=1 BACKTRACE=0 RUNTESTS=0 ZLEVELS=1 LOCALIZE=1 LANGUAGES=all" and then simply use %make $COMMON_OPTIONS plus any additional options for the step
%make $COMMON_OPTIONS %make $COMMON_OPTIONS TILES=1 SOUND=1 (same for the install step) Staudey: 1. It'd be cleaner to instead move this to a `environment : |` key before `setup`
```
export… | |||||
| cd ../tiles-build | |||||
| %make CLANG=1 CCACHE=1 PREFIX=/usr RELEASE=1 USE_HOME_DIR=1 BACKTRACE=0 RUNTESTS=0 ZLEVELS=1 LOCALIZE=1 LANGUAGES=all TILES=1 SOUND=1 | |||||
| install : | | |||||
| cd ./cli-build | |||||
| %make_install PREFIX=/usr RELEASE=1 USE_HOME_DIR=1 BACKTRACE=0 RUNTESTS=0 ZLEVELS=1 LOCALIZE=1 LANGUAGES=all | |||||
| cd ../tiles-build | |||||
| %make_install PREFIX=/usr RELEASE=1 USE_HOME_DIR=1 BACKTRACE=0 RUNTESTS=0 ZLEVELS=1 LOCALIZE=1 LANGUAGES=all TILES=1 SOUND=1 | |||||
Seems like there is also
From: https://github.com/CleverRaven/Cataclysm-DDA/blob/master/LICENSE.txt (leaving out the debug and test stuff that we don't use)