diff --git a/srcpkgs/reminiscence/patches/fix-keys.diff b/srcpkgs/reminiscence/patches/fix-keys.diff new file mode 100644 index 00000000000..567c22d9902 --- /dev/null +++ b/srcpkgs/reminiscence/patches/fix-keys.diff @@ -0,0 +1,29 @@ +--- systemstub_sdl.cpp ++++ systemstub_sdl.cpp +@@ -403,12 +403,12 @@ while (true) { + if (ev.key.keysym.mod & KMOD_ALT) { + if (ev.key.keysym.sym == SDLK_RETURN) { + switchGfxMode(!_fullscreen, _currentScaler); +- } else if (ev.key.keysym.sym == SDLK_KP_PLUS) { ++ } else if (ev.key.keysym.sym == SDLK_PLUS) { + uint8 s = _currentScaler + 1; + if (s < NUM_SCALERS) { + switchGfxMode(_fullscreen, s); + } +- } else if (ev.key.keysym.sym == SDLK_KP_MINUS) { ++ } else if (ev.key.keysym.sym == SDLK_MINUS) { + int8 s = _currentScaler - 1; + if (_currentScaler > 0) { + switchGfxMode(_fullscreen, s); +@@ -429,9 +429,9 @@ while (true) { + _pi.save = true; + } else if (ev.key.keysym.sym == SDLK_l) { + _pi.load = true; +- } else if (ev.key.keysym.sym == SDLK_KP_PLUS) { ++ } else if (ev.key.keysym.sym == SDLK_PLUS) { + _pi.stateSlot = 1; +- } else if (ev.key.keysym.sym == SDLK_KP_MINUS) { ++ } else if (ev.key.keysym.sym == SDLK_MINUS) { + _pi.stateSlot = -1; + } else if (ev.key.keysym.sym == SDLK_r) { + _pi.inpRecord = true; diff --git a/srcpkgs/reminiscence/template b/srcpkgs/reminiscence/template new file mode 100644 index 00000000000..cd9139f007c --- /dev/null +++ b/srcpkgs/reminiscence/template @@ -0,0 +1,28 @@ +# Template file for 'reminiscince' +pkgname=reminiscence +version=0.2.1 +revision=1 +wrksrc="REminiscence-${version}" +build_style=gnu-makefile +makedepends="SDL-devel zlib-devel" +short_desc="Rewrite of the engine used in the game Flashback from Delphine Software" +maintainer="Juan RP " +license="GPL-3" +homepage="http://cyxdown.free.fr/reminiscence/" +distfiles="http://cyxdown.free.fr/reminiscence/REminiscence-${version}.tar.bz2" +checksum=3168ffb7cd29e72a150e22edc6f0891001288f4c89d7900cbac8864ce763c2bd + +do_build() { + make CXX=$CXX ${makejobs} +} + +do_install() { + vinstall rs 755 usr/bin + vinstall README 644 usr/share/doc/${pkgname} +} + +reminiscence_package() { + pkg_install() { + vmove usr + } +}