From 40dce7991a5c3a51b9593954fd22022b42865687 Mon Sep 17 00:00:00 2001 From: Erik Hanson Date: Tue, 11 May 2010 22:22:58 +0200 Subject: [PATCH] games/brutalchess: Updated for version 0.5.2 --- games/brutalchess/bc_gcc4.2.diff | 49 ++++++++++++++++++++++++ games/brutalchess/brutalchess.SlackBuild | 1 + games/brutalchess/brutalchess.info | 2 +- games/brutalchess/doinst.sh | 2 +- 4 files changed, 52 insertions(+), 2 deletions(-) create mode 100644 games/brutalchess/bc_gcc4.2.diff diff --git a/games/brutalchess/bc_gcc4.2.diff b/games/brutalchess/bc_gcc4.2.diff new file mode 100644 index 0000000000..79a725881c --- /dev/null +++ b/games/brutalchess/bc_gcc4.2.diff @@ -0,0 +1,49 @@ +--- a/src/md3view.cpp ++++ b/src/md3view.cpp +@@ -72,7 +72,7 @@ + exit( returnCode ); + } + +-int initGL( GLvoid ); ++int initGL( void ); + // function to reset our viewport after a window resize + int resizeWindow( int width, int height ) + { +@@ -108,7 +108,7 @@ + + + // general OpenGL initialization function +-int initGL( GLvoid ) ++int initGL( void ) + { + cout << "Initializing OpenGL" << endl; + // Enable smooth shading +--- a/src/objview.cpp ++++ b/src/objview.cpp +@@ -73,7 +73,7 @@ + exit( returnCode ); + } + +-int initGL( GLvoid ); ++int initGL( void ); + // function to reset our viewport after a window resize + int resizeWindow( int width, int height ) + { +@@ -109,7 +109,7 @@ + + + // general OpenGL initialization function +-int initGL( GLvoid ) ++int initGL( void ) + { + cout << "Initializing OpenGL" << endl; + // Enable smooth shading +@@ -158,7 +158,7 @@ + } + + // Here goes our drawing code +-int drawGLScene( GLvoid ) ++int drawGLScene( void ) + { + // These are to calculate our fps + static GLint T0 = 0; diff --git a/games/brutalchess/brutalchess.SlackBuild b/games/brutalchess/brutalchess.SlackBuild index d2d9c96cf2..f464a76c29 100644 --- a/games/brutalchess/brutalchess.SlackBuild +++ b/games/brutalchess/brutalchess.SlackBuild @@ -27,6 +27,7 @@ rm -rf $PRGNAM-$VERSION # but tar does not mind so do not change this. tar xvf $CWD/$PRGNAM-alpha-$VERSION-src.tar.gz || exit 1 cd $PRGNAM-$VERSION +patch -p1 < $CWD/bc_gcc4.2.diff || exit 1 chown -R root:root . chmod -R u+w,go+r-w,a-s . diff --git a/games/brutalchess/brutalchess.info b/games/brutalchess/brutalchess.info index 91e90917fe..c0226a71b5 100644 --- a/games/brutalchess/brutalchess.info +++ b/games/brutalchess/brutalchess.info @@ -5,4 +5,4 @@ DOWNLOAD="http://dl.sourceforge.net/sourceforge/brutalchess/brutalchess-alpha-0. MD5SUM="370476b63091b8d82a9ea57c604dcbab" MAINTAINER="Erik Hanson" EMAIL="erik@slackbuilds.org" -APPROVED="elohim,rworkman" +APPROVED="rworkman" diff --git a/games/brutalchess/doinst.sh b/games/brutalchess/doinst.sh index 3412314ed0..06e65784cd 100644 --- a/games/brutalchess/doinst.sh +++ b/games/brutalchess/doinst.sh @@ -1,5 +1,5 @@ if [ -x usr/bin/update-desktop-database ]; then - ./usr/bin/update-desktop-database ./usr/share/applications >/dev/null 2>&1 + usr/bin/update-desktop-database usr/share/applications &> /dev/null fi