diff --git a/srcpkgs/cdogs-sdl/patches/fix-segfault-on-start.patch b/srcpkgs/cdogs-sdl/patches/fix-segfault-on-start.patch deleted file mode 100644 index 89669457bb1..00000000000 --- a/srcpkgs/cdogs-sdl/patches/fix-segfault-on-start.patch +++ /dev/null @@ -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); - } - diff --git a/srcpkgs/cdogs-sdl/template b/srcpkgs/cdogs-sdl/template index d5ced97718b..99711612b88 100644 --- a/srcpkgs/cdogs-sdl/template +++ b/srcpkgs/cdogs-sdl/template @@ -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 " 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() {