From 3ba3bf647faceada0e77d267ef663110ab0b81c9 Mon Sep 17 00:00:00 2001 From: Luca Matei Pintilie Date: Thu, 21 Dec 2023 15:35:49 +0100 Subject: [PATCH] New package: VVVVVV-2.3.6. --- srcpkgs/VVVVVV/files/README.voidlinux | 3 +++ srcpkgs/VVVVVV/patches/data-zip-path.diff | 13 ++++++++++++ srcpkgs/VVVVVV/template | 24 +++++++++++++++++++++++ 3 files changed, 40 insertions(+) create mode 100644 srcpkgs/VVVVVV/files/README.voidlinux create mode 100644 srcpkgs/VVVVVV/patches/data-zip-path.diff create mode 100644 srcpkgs/VVVVVV/template diff --git a/srcpkgs/VVVVVV/files/README.voidlinux b/srcpkgs/VVVVVV/files/README.voidlinux new file mode 100644 index 0000000000000..474876cb808f4 --- /dev/null +++ b/srcpkgs/VVVVVV/files/README.voidlinux @@ -0,0 +1,3 @@ +Download the required data.zip from +https://thelettervsixtim.es/makeandplay/data.zip and place it in +/var/lib/vvvvvv/data.zip diff --git a/srcpkgs/VVVVVV/patches/data-zip-path.diff b/srcpkgs/VVVVVV/patches/data-zip-path.diff new file mode 100644 index 0000000000000..8c0f7e334e811 --- /dev/null +++ b/srcpkgs/VVVVVV/patches/data-zip-path.diff @@ -0,0 +1,13 @@ +diff --git a/desktop_version/src/FileSystemUtils.cpp b/desktop_version/src/FileSystemUtils.cpp +index 833a3dea..88d89042 100644 +--- a/desktop_version/src/FileSystemUtils.cpp ++++ b/desktop_version/src/FileSystemUtils.cpp +@@ -145,7 +145,7 @@ int FILESYSTEM_init(char *argvZero, char* baseDir, char *assetsPath) + PLATFORM_migrateSaveData(output); + } + +- basePath = SDL_GetBasePath(); ++ basePath = SDL_strdup("/var/lib/vvvvvv/"); + + if (basePath == NULL) + { diff --git a/srcpkgs/VVVVVV/template b/srcpkgs/VVVVVV/template new file mode 100644 index 0000000000000..d3f8427b9a5c9 --- /dev/null +++ b/srcpkgs/VVVVVV/template @@ -0,0 +1,24 @@ +# Template file for 'VVVVVV' +pkgname=VVVVVV +version=2.3.6 +revision=1 +build_wrksrc=desktop_version +build_style=cmake +makedepends="SDL2-devel SDL2_mixer-devel" +short_desc="Platformer exploring what if you reversed gravity instead of jumping?" +maintainer="Luca Matei Pintilie " +license="custom:Proprietary" +homepage="https://thelettervsixtim.es/" +changelog="https://github.com/TerryCavanagh/VVVVVV/releases" +distfiles="https://github.com/TerryCavanagh/VVVVVV/archive/refs/tags/$version.tar.gz" +checksum=a3366aab9e8462d330044ab1ec63927e9f5c3801c0ed96b24f08c553dcb911e9 +repository=nonfree + +do_install() { + vbin build/VVVVVV +} + +post_install() { + vdoc "${FILESDIR}/README.voidlinux" + vlicense ../LICENSE.md +}