aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Kienlen <kommander@laposte.net>2020-11-27 21:06:42 +0100
committerLeo <thinkabit.ukim@gmail.com>2020-12-02 17:19:59 +0000
commit920ecb6a300c8c50ed890ba60e65a95fdc2edc01 (patch)
tree587e379401f43ee81f965bdaad9b1b0c6ee83ba5
parent1607ec6785020d5691d3b19eef2d48d7e9e73891 (diff)
downloadaports-920ecb6a300c8c50ed890ba60e65a95fdc2edc01.tar.gz
aports-920ecb6a300c8c50ed890ba60e65a95fdc2edc01.tar.bz2
aports-920ecb6a300c8c50ed890ba60e65a95fdc2edc01.tar.xz
testing/ri-li: new aport
https://ri-li.sourceforge.net Drive a toy wood engine in many levels and collect all the coaches to win
-rw-r--r--testing/ri-li/APKBUILD32
-rw-r--r--testing/ri-li/iostream.patch202
-rw-r--r--testing/ri-li/ri-li.desktop13
3 files changed, 247 insertions, 0 deletions
diff --git a/testing/ri-li/APKBUILD b/testing/ri-li/APKBUILD
new file mode 100644
index 0000000000..6a176e0e99
--- /dev/null
+++ b/testing/ri-li/APKBUILD
@@ -0,0 +1,32 @@
+# Contributor: Thomas Kienlen <kommander@laposte.net>
+# Maintainer: Thomas Kienlen <kommander@laposte.net>
+pkgname=ri-li
+pkgver=2.0.1
+pkgrel=0
+pkgdesc="Drive a toy wood engine in many levels and collect all the coaches to win"
+url="https://ri-li.sourceforge.net"
+arch="x86 x86_64"
+license="GPL-3.0-or-later"
+makedepends="sdl_mixer-dev"
+source="$pkgname-$pkgver.tar.bz2::https://download.sourceforge.net/sourceforge/ri-li/Ri-li-$pkgver.tar.bz2
+ iostream.patch
+ ri-li.desktop
+ "
+options="!check" # No test suite
+builddir="$srcdir/Ri-li-$pkgver"
+
+build() {
+ ./configure --prefix=/usr
+ sed -i "s/SUBDIRS = src data Sounds gentoo/SUBDIRS = src data Sounds/" Makefile
+ make
+}
+
+package() {
+ make DESTDIR="$pkgdir" install
+ install -Dm 644 "$srcdir"/ri-li.desktop "$pkgdir"/usr/share/applications/ri-li.desktop
+ install -Dm 644 "$builddir"/data/Ri-li-icon-48x48.png "$pkgdir"/usr/share/pixmaps/ri-li.png
+}
+
+sha512sums="6d56c00dae90b50bca81ca739c628335b4ad7642c19a3b3c28630ddb91bd847ca6d383cace66ef436a1dda7497c9d3939de2626071bae40d423b2444fed97863 ri-li-2.0.1.tar.bz2
+49fbf3a30f0ae6c47d8fcc45d72891ac199187f7615840f6eb994df998440980d7838beceec5225325c2e971c97dbc28a02ad47db03d144bb9cd90b18d4422e8 iostream.patch
+cba2c93be02ad90ffda4fd637df347f3a88d43548c61d60bf06050cac5e6d9d379b6232a86925049903dbf7eabf9355977e17c568042341e1091af358932393f ri-li.desktop"
diff --git a/testing/ri-li/iostream.patch b/testing/ri-li/iostream.patch
new file mode 100644
index 0000000000..5846bb32b3
--- /dev/null
+++ b/testing/ri-li/iostream.patch
@@ -0,0 +1,202 @@
+diff -urN Ri-li-2.0.1-orig/src//audio.cc Ri-li-2.0.1/src//audio.cc
+--- Ri-li-2.0.1-orig/src//audio.cc 2007-11-02 12:48:15.000000000 +0100
++++ Ri-li-2.0.1/src//audio.cc 2010-12-14 21:54:10.533334011 +0100
+@@ -22,13 +22,16 @@
+ // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+ #include <stdlib.h>
+-#include <iostream.h>
++#include <iostream>
+ #include <string.h>
+
+ #include "audio.h"
+ #include "utils.h"
+ #include "preference.h"
+
++using std::cerr;
++using std::endl;
++
+ /*** Variable globales ***/
+ /*************************/
+ extern sPreference Pref;
+diff -urN Ri-li-2.0.1-orig/src//ecran.cc Ri-li-2.0.1/src//ecran.cc
+--- Ri-li-2.0.1-orig/src//ecran.cc 2007-11-02 12:48:16.000000000 +0100
++++ Ri-li-2.0.1/src//ecran.cc 2010-12-14 21:54:50.346667343 +0100
+@@ -21,7 +21,7 @@
+ // with this program; if not, write to the Free Software Foundation, Inc.,
+ // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+-#include <iostream.h>
++#include <iostream>
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <math.h>
+diff -urN Ri-li-2.0.1-orig/src//editeur.cc Ri-li-2.0.1/src//editeur.cc
+--- Ri-li-2.0.1-orig/src//editeur.cc 2007-11-02 12:48:17.000000000 +0100
++++ Ri-li-2.0.1/src//editeur.cc 2010-12-14 21:55:25.770000677 +0100
+@@ -25,7 +25,7 @@
+ #include <windows.h>
+ #endif
+
+-#include <iostream.h>
++#include <iostream>
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
+@@ -38,6 +38,9 @@
+ #include "tableau.h"
+ #include "mouse.h"
+
++using std::cerr;
++using std::endl;
++
+ /*** Variables globales ***/
+ /**************************/
+ extern SDL_Surface *sdlVideo;
+diff -urN Ri-li-2.0.1-orig/src//jeux.cc Ri-li-2.0.1/src//jeux.cc
+--- Ri-li-2.0.1-orig/src//jeux.cc 2007-11-02 12:48:17.000000000 +0100
++++ Ri-li-2.0.1/src//jeux.cc 2010-12-14 22:06:21.783334023 +0100
+@@ -25,7 +25,7 @@
+ #include <windows.h>
+ #endif
+
+-#include <iostream.h>
++#include <iostream>
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
+diff -urN Ri-li-2.0.1-orig/src//loco.cc Ri-li-2.0.1/src//loco.cc
+--- Ri-li-2.0.1-orig/src//loco.cc 2007-11-02 12:48:18.000000000 +0100
++++ Ri-li-2.0.1/src//loco.cc 2010-12-14 22:06:40.183334009 +0100
+@@ -21,7 +21,7 @@
+ // with this program; if not, write to the Free Software Foundation, Inc.,
+ // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+-#include <iostream.h>
++#include <iostream>
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
+diff -urN Ri-li-2.0.1-orig/src//main.cc Ri-li-2.0.1/src//main.cc
+--- Ri-li-2.0.1-orig/src//main.cc 2007-11-02 12:48:19.000000000 +0100
++++ Ri-li-2.0.1/src//main.cc 2010-12-14 22:07:15.993334009 +0100
+@@ -23,7 +23,7 @@
+
+ #include <stdio.h>
+ #include <stdlib.h>
+-#include <iostream.h>
++#include <iostream>
+ #include <string.h>
+ #include <SDL/SDL.h>
+ #include <SDL/SDL_mixer.h>
+@@ -39,6 +39,9 @@
+ #include "editeur.h"
+ #include "utils.h"
+
++using std::cerr;
++using std::endl;
++
+ /*** Variables globales ***/
+ /************************/
+ SDL_Surface *sdlVideo; // Pointe sur l'écran video
+diff -urN Ri-li-2.0.1-orig/src//menu.cc Ri-li-2.0.1/src//menu.cc
+--- Ri-li-2.0.1-orig/src//menu.cc 2007-11-02 12:48:19.000000000 +0100
++++ Ri-li-2.0.1/src//menu.cc 2010-12-14 22:07:55.990000676 +0100
+@@ -21,7 +21,7 @@
+ // with this program; if not, write to the Free Software Foundation, Inc.,
+ // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+-#include <iostream.h>
++#include <iostream>
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
+@@ -34,6 +34,9 @@
+
+ #define PY 180
+
++using std::cerr;
++using std::endl;
++
+ /*** Variables globales ***/
+ /**************************/
+ extern int Horloge;
+diff -urN Ri-li-2.0.1-orig/src//mouse.cc Ri-li-2.0.1/src//mouse.cc
+--- Ri-li-2.0.1-orig/src//mouse.cc 2007-11-02 12:48:20.000000000 +0100
++++ Ri-li-2.0.1/src//mouse.cc 2010-12-14 22:08:11.696667343 +0100
+@@ -21,7 +21,7 @@
+ // with this program; if not, write to the Free Software Foundation, Inc.,
+ // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+-#include <iostream.h>
++#include <iostream>
+ #include <stdio.h>
+ #include "mouse.h"
+ #include "preference.h"
+diff -urN Ri-li-2.0.1-orig/src//sprite.cc Ri-li-2.0.1/src//sprite.cc
+--- Ri-li-2.0.1-orig/src//sprite.cc 2007-11-02 12:48:20.000000000 +0100
++++ Ri-li-2.0.1/src//sprite.cc 2010-12-14 22:09:17.650000676 +0100
+@@ -21,7 +21,7 @@
+ // with this program; if not, write to the Free Software Foundation, Inc.,
+ // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+-#include <iostream.h>
++#include <iostream>
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
+@@ -30,6 +30,9 @@
+ #include "preference.h"
+ #include "utils.h"
+
++using std::cerr;
++using std::endl;
++
+ /*** Variables Globales ***/
+ /**************************/
+ extern SDL_Surface *sdlVideo;
+@@ -39,8 +42,8 @@
+ extern int NSprites;
+ extern sPreference Pref;
+
+-static char* OrdreTexte="ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-!?*+<>%$()&;";
+-static char* OrdreTexte2="abcdefghijklmnopqrstuvwxyz0123456789,_|?*+<>%$[]&;";
++static char* OrdreTexte=(char *)"ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-!?*+<>%$()&;";
++static char* OrdreTexte2=(char *)"abcdefghijklmnopqrstuvwxyz0123456789,_|?*+<>%$[]&;";
+ static int TableTexte[256];
+
+ char Langue[31][16]; // Mémorise les noms des langues
+diff -urN Ri-li-2.0.1-orig/src//tableau.cc Ri-li-2.0.1/src//tableau.cc
+--- Ri-li-2.0.1-orig/src//tableau.cc 2007-11-02 12:48:21.000000000 +0100
++++ Ri-li-2.0.1/src//tableau.cc 2010-12-14 22:09:32.603334046 +0100
+@@ -21,7 +21,7 @@
+ // with this program; if not, write to the Free Software Foundation, Inc.,
+ // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+-#include <iostream.h>
++#include <iostream>
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include "preference.h"
+diff -urN Ri-li-2.0.1-orig/src//utils.cc Ri-li-2.0.1/src//utils.cc
+--- Ri-li-2.0.1-orig/src//utils.cc 2007-11-02 12:48:22.000000000 +0100
++++ Ri-li-2.0.1/src//utils.cc 2010-12-14 22:09:58.343334046 +0100
+@@ -21,7 +21,7 @@
+ // with this program; if not, write to the Free Software Foundation, Inc.,
+ // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+-#include <iostream.h>
++#include <iostream>
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
+@@ -36,6 +36,9 @@
+ #include "preference.h"
+ #include "sprite.h"
+
++using std::cerr;
++using std::endl;
++
+ /*** Variables globales ***/
+ /**************************/
+ extern sPreference Pref;
diff --git a/testing/ri-li/ri-li.desktop b/testing/ri-li/ri-li.desktop
new file mode 100644
index 0000000000..a286838157
--- /dev/null
+++ b/testing/ri-li/ri-li.desktop
@@ -0,0 +1,13 @@
+[Desktop Entry]
+Version=1
+Encoding=UTF-8
+Exec=Ri_li %u
+Icon=ri-li.png
+Type=Application
+Categories=Game;ArcadeGame;
+Name=Ri-li
+Comment=Drive a toy wood engine
+Comment[fr]=Conduire un petit train de bois
+Comment[it]=Conduci un piccolo treno di legno
+Terminal=false
+StartupNotify=false