diff options
-rw-r--r-- | games-rpg/doukutsu-bin/Manifest | 2 | ||||
-rw-r--r-- | games-rpg/doukutsu-bin/doukutsu-bin-1.01.ebuild | 29 |
2 files changed, 20 insertions, 11 deletions
diff --git a/games-rpg/doukutsu-bin/Manifest b/games-rpg/doukutsu-bin/Manifest index 1919f20..f7870aa 100644 --- a/games-rpg/doukutsu-bin/Manifest +++ b/games-rpg/doukutsu-bin/Manifest @@ -1,2 +1,2 @@ DIST linuxdoukutsu-1.01.tar.bz2 1036274 BLAKE2B e47a935a4fa6dcdb6648bd6b2647ea4b0b351db6b211c46ca7b904730f6fac56d5fe30b6f30d4650aee2f3277f4fd53b546120c74bc2d89ca3d26d0dcb4c6948 SHA512 e17049d4e5c919ccc61d9f01c71e36a77206536bb56099a3be739fe9faa7311a5aadee3a270c4f919e52db0d83a2e2075234df52dac02f1b90ef0e80b48510e5 -EBUILD doukutsu-bin-1.01.ebuild 1494 BLAKE2B fa573366ee96d72fe60464ec5eb579472a5e0a1f9bfa81680967a698668aefe1b8861c1e87efb93a5c8988284518253944a24ea7aaa140ae3ee1969855ac230e SHA512 794d75f191112b01e8f1f5fe40c3a7440dcc2f0d8a2f1173751f95d53fc32c5488f1c7fd96b5be7e3cf6ceee0f091b4eb0223c839ae4406da828ba5c43aa9c89 +EBUILD doukutsu-bin-1.01.ebuild 1749 BLAKE2B 74ab66b10f2f99101c1dc96e464888e142dc545399996e6768b877500fe2e1bd8d5eec47ebb5dd96f9ec05060ed517e500e123895e43b574f39df2da241e3c96 SHA512 bb8fe44f4c3648bc194dc00306c1a4b825fceb939849775637fa6772a1fad41754dc4c2313ad4432197dc98aec6b3815a21db65fc1eb76b258ee2773ddd3692d diff --git a/games-rpg/doukutsu-bin/doukutsu-bin-1.01.ebuild b/games-rpg/doukutsu-bin/doukutsu-bin-1.01.ebuild index 7c76bfc..4a7d0b3 100644 --- a/games-rpg/doukutsu-bin/doukutsu-bin-1.01.ebuild +++ b/games-rpg/doukutsu-bin/doukutsu-bin-1.01.ebuild @@ -3,6 +3,8 @@ EAPI="7" +inherit desktop + DESCRIPTION="Side-scrolling platformer written by StudioPixel" HOMEPAGE="http://www.cavestory.org" #SRC_URI="http://www.scibotic.com/uploads/2008/04/linuxdoukutsu-${PV}.tar.bz2" @@ -29,21 +31,28 @@ src_install() { echo "cd /usr/share/${PN} && ./doukutsu.bin" > doukutsu || die "couldn't create wrapper?!" dobin doukutsu - mv Config.dat doukutsu_Config.dat - touch doukutsu_Profile.dat || die "couldn't create empty Profile.dat?" - insinto /var/lib - insopts -m 666 - doins doukutsu_Config.dat doukutsu_Profile.dat dosym /var/lib/doukutsu_Config.dat /usr/share/${PN}/Config.dat dosym /var/lib/doukutsu_Profile.dat /usr/share/${PN}/Profile.dat + + make_desktop_entry doukutsu "Cave Story" } pkg_postinst() { + # do this here so un/reinstalling won't destroy your config/save + [[ -f /var/lib/doukutsu_Config.dat ]] || { + cp "${S}"/Config.dat /var/lib/doukutsu_Config.dat + chmod 666 /var/lib/doukutsu_Config.dat + } + [[ -f /var/lib/doukutsu_Profile.dat ]] || { + touch /var/lib/doukutsu_Profile.dat + chmod 666 /var/lib/doukutsu_Profile.dat + } + elog "This port does not provide a configuration tool for Config.dat." - elog "The original DoConfig.exe is provided (if you can use wine)," - elog "or help for configuring it manually is provided in:" - elog "/usr/share/doc/${P}/configfileformat.txt" + elog "For Wine users, /usr/share/${PN}/DoConfig.exe should do the job." + elog "otherwise, /usr/share/doc/${P}/configfileformat.txt may help." elog "" - elog "If you need to back up your save file for any reason," - elog "it is located at /var/lib/doukutsu_Profile.dat" + elog "If you need to back up your config/save file for any reason," + elog "it is located at /var/lib/doukutsu_{Config,Profile}.dat" + elog "Please be aware that every user can read/write these files." } |