cdogs-sdl: update to 0.6.1.

This commit is contained in:
Enno Boland 2016-05-25 12:57:03 +02:00
parent 6ed9e9ac0b
commit 04bd47fa71
2 changed files with 3 additions and 28 deletions

View File

@ -1,25 +0,0 @@
--- src/cdogs/utils.c.orig 2016-03-06 09:56:53.000000000 +0100
+++ src/cdogs/utils.c 2016-03-15 13:52:14.404949301 +0100
@@ -308,12 +308,17 @@ void GetDataFilePath(char *buf, const ch
{
char relbuf[CDOGS_PATH_MAX];
char cwd[CDOGS_PATH_MAX];
- if (CDogsGetCWD(cwd) == NULL)
- {
- fprintf(stderr, "Error getting CWD; %s\n", strerror(errno));
- strcpy(cwd, "");
+ if(CDOGS_DATA_DIR[0] == '/') {
+ sprintf(relbuf, "%s%s", CDOGS_DATA_DIR, path);
+ }
+ else {
+ if (CDogsGetCWD(cwd) == NULL)
+ {
+ fprintf(stderr, "Error getting CWD; %s\n", strerror(errno));
+ strcpy(cwd, "");
+ }
+ sprintf(relbuf, "%s/%s%s", cwd, CDOGS_DATA_DIR, path);
}
- sprintf(relbuf, "%s/%s%s", cwd, CDOGS_DATA_DIR, path);
RealPath(relbuf, buf);
}

View File

@ -1,7 +1,7 @@
# Template file for 'cdogs'
pkgname=cdogs-sdl
version=0.6.0
revision=2
version=0.6.1
revision=1
build_style=cmake
hostmakedepends="cmake"
makedepends="physfs-devel SDL2-devel SDL2_mixer-devel SDL2_image-devel SDL2_net-devel yajl-devel"
@ -10,7 +10,7 @@ maintainer="Enno Boland <gottox@voidlinux.eu>"
homepage="http://cxong.github.io/cdogs-sdl/"
license="GPL2"
distfiles="https://github.com/cxong/cdogs-sdl/archive/$version.tar.gz"
checksum="ac7c6ca6275bd4de16078d417b77fcc3bec0ea5555b342d8a3901da397736fa6"
checksum=36035451286e3dd8af036ebfd84eb8ae4b9fa84bfc07a0bf2600cf7a78cbc167
configure_args="-DCDOGS_DATA_DIR=/usr/share/cdogs/"
pre_configure() {