From 36327c7d07c49eb4fa4c704df80de5ff6434f416 Mon Sep 17 00:00:00 2001 From: milisbir Date: Thu, 8 Mar 2018 09:15:01 +0200 Subject: [PATCH] pingus --- .../genel/p/pingus/missing-header.patch | 22 +++++++++++++++++ .../p/pingus/pingus-0.7.6-gcc470-udl.patch | 22 +++++++++++++++++ talimatname/genel/p/pingus/pingus.desktop | 9 +++++++ talimatname/genel/p/pingus/talimat | 24 +++++++++++++++++++ 4 files changed, 77 insertions(+) create mode 100644 talimatname/genel/p/pingus/missing-header.patch create mode 100644 talimatname/genel/p/pingus/pingus-0.7.6-gcc470-udl.patch create mode 100644 talimatname/genel/p/pingus/pingus.desktop create mode 100644 talimatname/genel/p/pingus/talimat diff --git a/talimatname/genel/p/pingus/missing-header.patch b/talimatname/genel/p/pingus/missing-header.patch new file mode 100644 index 000000000..cc1dcdbb8 --- /dev/null +++ b/talimatname/genel/p/pingus/missing-header.patch @@ -0,0 +1,22 @@ +From df6e2f445d3e2925a94d22faeb17be9444513e92 Mon Sep 17 00:00:00 2001 +From: Jonathan Wakely +Date: Mon, 30 Jan 2017 15:41:53 +0000 +Subject: [PATCH] Add missing header for std::function and std::bind + +--- + src/pingus/screens/demo_session.cpp | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/pingus/screens/demo_session.cpp b/src/pingus/screens/demo_session.cpp +index e3ec49a2c..f887e50f0 100644 +--- a/src/pingus/screens/demo_session.cpp ++++ b/src/pingus/screens/demo_session.cpp +@@ -18,6 +18,7 @@ + + #include + #include ++#include + + #include "engine/gui/gui_manager.hpp" + #include "engine/gui/surface_button.hpp" + diff --git a/talimatname/genel/p/pingus/pingus-0.7.6-gcc470-udl.patch b/talimatname/genel/p/pingus/pingus-0.7.6-gcc470-udl.patch new file mode 100644 index 000000000..843439321 --- /dev/null +++ b/talimatname/genel/p/pingus/pingus-0.7.6-gcc470-udl.patch @@ -0,0 +1,22 @@ +--- src/pingus/pingus_main.cpp~ 2011-12-24 15:46:47.000000000 -0600 ++++ src/pingus/pingus_main.cpp 2012-01-03 13:13:03.034195720 -0600 +@@ -465,7 +465,7 @@ + void + PingusMain::print_greeting_message() + { +- std::string greeting = "Welcome to Pingus "VERSION; ++ std::string greeting = "Welcome to Pingus " VERSION; + greeting += "!"; + std::cout << greeting << std::endl; + for (unsigned int i = 0; i < greeting.length(); ++i) +--- src/pingus/screens/pingus_menu.cpp~ 2011-12-24 15:46:47.000000000 -0600 ++++ src/pingus/screens/pingus_menu.cpp 2012-01-03 13:30:28.967700554 -0600 +@@ -153,7 +153,7 @@ + gc.get_height()/2 - 280)); + + gc.print_left(Fonts::pingus_small, Vector2i(gc.get_width()/2 - 400 + 25, gc.get_height()-140), +- "Pingus "VERSION" - Copyright (C) 1998-2011 Ingo Ruhnke \n" ++ "Pingus " VERSION " - Copyright (C) 1998-2011 Ingo Ruhnke \n" + "See the file AUTHORS for a complete list of contributors.\n" + "Pingus comes with ABSOLUTELY NO WARRANTY. This is free software, and you are\n" + "welcome to redistribute it under certain conditions; see the file COPYING for details.\n"); diff --git a/talimatname/genel/p/pingus/pingus.desktop b/talimatname/genel/p/pingus/pingus.desktop new file mode 100644 index 000000000..7492f41ad --- /dev/null +++ b/talimatname/genel/p/pingus/pingus.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=Pingus +Comment=Lemmings'den esinlenen bir eylem-bulmaca oyunu +Exec=pingus +Terminal=false +Type=Application +Categories=Application;Game;LogicGame +Icon=/usr/share/pingus/images/core/editor/actions.png diff --git a/talimatname/genel/p/pingus/talimat b/talimatname/genel/p/pingus/talimat new file mode 100644 index 000000000..473c02f41 --- /dev/null +++ b/talimatname/genel/p/pingus/talimat @@ -0,0 +1,24 @@ +# Tanım: Lemmings'den esinlenen bir eylem-bulmaca oyunu +# URL: http://pingus.seul.org +# Paketçi: Cihan_Alkan +# Gerekler: sdl-image sdl-mixer xorg-mesa boost scons xorg-glu +# Grup: oyun + +isim=pingus +surum=0.7.6 +devir=1 +kaynak=(https://github.com/Pingus/pingus/archive/v$surum.tar.gz::$isim-$surum.tar.gz + ${isim}.desktop + pingus-0.7.6-gcc470-udl.patch + missing-header.patch) + +derle() { + cd $isim-$surum + patch -Np0 -i ${SRC}/pingus-0.7.6-gcc470-udl.patch + sed -i "s#/man1/#/man6/#g" Makefile + # missing header + patch -Np1 -i ../missing-header.patch + scons prefix=/usr + make install DESTDIR="${PKG}" PREFIX="/usr" + install -D -m644 "${SRC}/pingus.desktop" "${PKG}/usr/share/applications/pingus.desktop" +}