makedeb


zelda-alttd-alpha-git 0.r4864.6298224a-2


!!!UNFINISHED!!! The Legend of Zelda: A Link to the Dream - Remake of The Legend of Zelda: Link's Awakening !!!UNFINISHED!!!

Click here to go back to the commit logs for zelda-alttd-alpha-git.

Commit:


Hash: f06ae457a289bfd88440b04b52908d66000014f7

Message: minor error.txt in cache

Diff


diff --git a/.SRCINFO b/.SRCINFO
index 1fb972c..2ec937c 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -2,7 +2,7 @@ generated-by = makedeb
 pkgname = zelda-alttd-alpha-git
 pkgbase = zelda-alttd-alpha-git
 pkgdesc = !!!UNFINISHED!!! The Legend of Zelda: A Link to the Dream - Remake of The Legend of Zelda: Link's Awakening !!!UNFINISHED!!!
-pkgrel = 1
+pkgrel = 2
 pkgver = 0.r4864.6298224a
 url = https://www.solarus-games.org/en/games/the-legend-of-zelda-a-link-to-the-dream
 arch = all
diff --git a/PKGBUILD b/PKGBUILD
index 89bacde..9d1faef 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,7 +5,7 @@ _pkgname=zelda-alttd-alpha
 pkgname=zelda-alttd-alpha-git
 _name="The Legend of Zelda: A Link to the Dream"
 pkgver=0.r4864.6298224a
-pkgrel=1
+pkgrel=2
 pkgdesc="!!!UNFINISHED!!! The Legend of Zelda: A Link to the Dream - Remake of The Legend of Zelda: Link's Awakening !!!UNFINISHED!!!"
 arch=('all')
 url='https://www.solarus-games.org/en/games/the-legend-of-zelda-a-link-to-the-dream'
@@ -35,8 +35,15 @@ build() {
   cmake -DCMAKE_INSTALL_PREFIX='/usr' .
   make
 
-export _WRAPPER="#!/bin/sh
-exec solarus-run /usr/share/games/solarus/$pkgname/data.solarus \"\$@\""
+export _WRAPPER='#!/bin/sh
+
+_name='"${pkgname}"'
+cache_dir="${XDG_CACHE_HOME:-$HOME/.cache}/solarus/${_name}"
+
+mkdir -p "${cache_dir}"
+cd "${cache_dir}"
+
+exec solarus-run "/usr/share/games/solarus/${_name}/data.solarus" "$@"'
 
 export _DESKTOPFILE="[Desktop Entry]
 Version=1.0