diff --git a/srcpkgs/pingus/files/pingus.desktop b/srcpkgs/pingus/files/pingus.desktop new file mode 100644 index 00000000000..276db36a444 --- /dev/null +++ b/srcpkgs/pingus/files/pingus.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=Pingus +Comment=A free Lemmings[tm] clone +Exec=pingus +Terminal=false +Type=Application +Categories=Application;Game;LogicGame +Icon=/usr/share/pingus/images/core/editor/actions.png diff --git a/srcpkgs/pingus/patches/pingus-0.7.6-gcc470-udl.patch b/srcpkgs/pingus/patches/pingus-0.7.6-gcc470-udl.patch new file mode 100644 index 00000000000..843439321c8 --- /dev/null +++ b/srcpkgs/pingus/patches/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/srcpkgs/pingus/template b/srcpkgs/pingus/template new file mode 100644 index 00000000000..4b2376b5a53 --- /dev/null +++ b/srcpkgs/pingus/template @@ -0,0 +1,27 @@ +# Template file for 'pingus' +pkgname=pingus +version=0.7.6 +revision=1 +hostmakedepends="scons pkg-config" +makedepends="SDL_image-devel SDL_mixer-devel boost-devel libpng-devel libXi-devel zlib-devel" +short_desc="Free Lemmings-like puzzle game" +maintainer="Juan RP " +license="GPL-2" +homepage="http://pingus.seul.org/welcome.html" +distfiles="http://pingus.googlecode.com/files/pingus-${version}.tar.bz2" +checksum=759c1253075d1e72691bc1e770b24cdd51917041fd1857c1daf85b65a6686460 + +do_build() { + scons prefix=/usr +} + +do_install() { + make PREFIX=/usr DESTDIR=${DESTDIR} install + vinstall ${FILESDIR}/pingus.desktop 644 usr/share/applications +} + +pingus_package() { + pkg_install() { + vmove all + } +}