From c2f30995f467f130697b04a81b09a09f9ff72ed2 Mon Sep 17 00:00:00 2001 From: Philoponus Bindle Date: Thu, 27 Apr 2023 21:38:21 -0400 Subject: [PATCH] cavestory: fix unwritable save The save file is always located in a file called "Profile.dat" next to the executable. When installed normally and someone tries to play the game, the game wouldn't save because it couldn't write to the file (but provided no error message). --- srcpkgs/cavestory/template | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/srcpkgs/cavestory/template b/srcpkgs/cavestory/template index c7e9ea106d1e..72575d8d3174 100644 --- a/srcpkgs/cavestory/template +++ b/srcpkgs/cavestory/template @@ -1,7 +1,7 @@ # Template file for 'cavestory' pkgname=cavestory version=1.2 -revision=2 +revision=3 archs="x86_64 i686" create_wrksrc=yes short_desc="Japanese side-scrolling platformer game" @@ -14,6 +14,7 @@ checksum="76466fc1b1901ce25e301a4ec8450aced806c9d499d66707d6f7b38efebc24c1 a8711393c86cb6a7c6786883b22aed814f0e819cf935f8b273cb9dc5d58cfc6b" repository=nonfree nopie=yes +nocheckperms=yes # The save is always placed next to the executable do_install() { vmkdir usr/libexec/cavestory @@ -23,6 +24,8 @@ do_install() { vdoc linuxDoukutsu-1.01/doc/configfileformat.txt vinstall linuxDoukutsu-${version}/doukutsu_${XBPS_TARGET_WORDSIZE}bits \ 755 usr/libexec/cavestory doukutsu.bin + touch ${PKGDESTDIR}/usr/libexec/cavestory/Profile.dat + chmod 666 ${PKGDESTDIR}/usr/libexec/cavestory/Profile.dat vbin ${FILESDIR}/cavestory vinstall ${FILESDIR}/cavestory.desktop 644 usr/share/applications/ vinstall ${FILESDIR}/cavestory.png 644 usr/share/pixmaps/