diff options
author | Mikael Eriksson | 2015-06-08 15:57:05 +0200 |
---|---|---|
committer | Mikael Eriksson | 2015-06-08 15:57:05 +0200 |
commit | ac0bc8a140eb55b24cb60ae4d6760a52c1b9e235 (patch) | |
tree | 9122e677a9bc1099c6e4fce713204079d837b38b | |
download | aur-ac0bc8a140eb55b24cb60ae4d6760a52c1b9e235.tar.gz |
Imported
-rw-r--r-- | .SRCINFO | 21 | ||||
-rw-r--r-- | PKGBUILD | 39 | ||||
-rw-r--r-- | fix-keys.diff | 31 | ||||
-rw-r--r-- | reminiscence.sh | 5 |
4 files changed, 96 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..9bbbe9990b05 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,21 @@ +pkgbase = reminiscence + pkgdesc = A rewrite of the flashback engine + pkgver = 0.2.1 + pkgrel = 1 + url = http://cyxdown.free.fr/reminiscence/ + arch = i686 + arch = x86_64 + license = GPL + makedepends = p7zip + depends = sdl + source = http://cyxdown.free.fr/reminiscence/REminiscence-0.2.1.tar.bz2 + source = http://gtamp.com/PSP/flashback_data_files.7z + source = fix-keys.diff + source = reminiscence.sh + md5sums = 59e7c5b3848c65f8eddb0e8c0e588221 + md5sums = f994412ad4246c587896dab7d2eb9627 + md5sums = e470517e2933c09362681c620938d218 + md5sums = 4ed0350e4b81e9ba305f90e157c75371 + +pkgname = reminiscence + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..19e4bea8b777 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,39 @@ +# Maintainer: Mikael Eriksson <mikael_eriksson@miffe.org> + +# flashback_data_files.7z if from http://gtamp.com/PSP/reminiscencepsp.php + +pkgname=reminiscence +pkgver=0.2.1 +pkgrel=1 +pkgdesc="A rewrite of the flashback engine" +arch=('i686' 'x86_64') +url="http://cyxdown.free.fr/reminiscence/" +license=('GPL') +depends=('sdl') +makedepends=('p7zip') +source=(http://cyxdown.free.fr/reminiscence/REminiscence-${pkgver}.tar.bz2 + http://gtamp.com/PSP/flashback_data_files.7z + fix-keys.diff + reminiscence.sh) +md5sums=('59e7c5b3848c65f8eddb0e8c0e588221' + 'f994412ad4246c587896dab7d2eb9627' + 'e470517e2933c09362681c620938d218' + '4ed0350e4b81e9ba305f90e157c75371') + +build() { + cd "$srcdir/REminiscence-$pkgver" + + patch -p1 -i "$srcdir/fix-keys.diff" + + make + + install -d "$pkgdir/usr/bin" + install -m755 rs "$pkgdir/usr/bin/reminiscence.bin" + install -m755 "$srcdir/reminiscence.sh" "$pkgdir/usr/bin/reminiscence" + + msg2 "Extracting flashback_data_files.7z with p7zip" + install -m755 -d "$pkgdir/usr/share/reminiscence" + 7z x "$srcdir/flashback_data_files.7z" -o"$pkgdir/usr/share/reminiscence" -y >/dev/null +} + +# vim:set ts=2 sw=2 et: diff --git a/fix-keys.diff b/fix-keys.diff new file mode 100644 index 000000000000..10a0df94c1ca --- /dev/null +++ b/fix-keys.diff @@ -0,0 +1,31 @@ +Index: REminiscence-0.2.1/systemstub_sdl.cpp +=================================================================== +--- REminiscence-0.2.1.orig/systemstub_sdl.cpp ++++ REminiscence-0.2.1/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/reminiscence.sh b/reminiscence.sh new file mode 100644 index 000000000000..904da96286ec --- /dev/null +++ b/reminiscence.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +S=~/.reminiscence +test -d $S || mkdir -p $S +exec /usr/bin/reminiscence.bin --datapath=/usr/share/reminiscence --savepath=$S |