Username: Password: Remember me
Search Criteria Advanced
Package Details

brutalchess 0.5.2-3
http://sourceforge.net/projects/brutalchess/
Chess game inspired by 'Battle Chess'. Features full 3D graphics, an advanced particle engine, and several different levels of AI

unsupported :: games
Maintainer: Arkham
Votes: 55

License: GPL

Last Updated: Thu, 25 Jun 2009 19:52:12 +0000
First Submitted: Wed, 02 Aug 2006 16:06:16 +0000

Tarball :: Files :: PKGBUILD

Dependencies freeglut sdl_image

Sources
http://downloads.sourceforge.net/sourceforge/brutalchess/brutalchess-alpha-0.5.2-src.tar.gz
Comment by: Arkham on Sat, 22 Aug 2009 22:27:52 +0000
Still builds and runs perfectly here (:
Comment by: darie on Tue, 11 Aug 2009 17:04:44 +0000
Hello, I've played with the configure flags in the PKGBUILD and this works for me (no SDL errors anymore):

# Configure and fix some warnings
./configure \
--prefix=/usr \
--libexecdir=/usr/bin \
--with-sdl-prefix=/usr/lib \
--with-sdl-exec-prefix=/usr \
--disable-sdltest \
--with-ft-prefix=/usr/lib \
--with-ft-exec-prefix=/usr \
--disable-freetypetest

---
But I don't know if that's a good way. I'm no expert with that ;)
Comment by: darie on Tue, 11 Aug 2009 15:51:22 +0000
I also getting the SDL error. I'm on x86_64, maybe that's it?

Here is the error message:

checking for SDL - version >= 1.2.7... no
*** Could not run SDL test program, checking why...
*** The test program compiled, but did not run. This usually means
*** that the run-time linker is not finding SDL or finding the wrong
*** version of SDL. If it is not finding SDL, you'll need to set your
*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point
*** to the installed location Also, make sure you have run ldconfig if that
*** is required on your system
***
*** If you have an old version installed, it is best to remove it, although
*** you may also be able to get things to work by modifying LD_LIBRARY_PATH
configure: error: *** SDL version 1.2.7 not found!
make: *** No targets specified and no makefile found. Stop.
==> ERROR: Build Failed.
Aborting...
Comment by: Arkham on Thu, 16 Jul 2009 00:19:20 +0000
Here builds fine; as for the quake option, I've never seen it. If you manage to get it to work please attach the PKGBUILD.
Comment by: SanskritFritz on Tue, 14 Jul 2009 21:49:18 +0000
I sadly miss the --pieces=quake option both here and in the package from arch-games:
Failed to load the animation.cfg file: ../art/md3/cloud/animation.cfg

Also makepkg fails with the following message:
configure: error: *** SDL version 1.2.7 not found!

I have SDL 1.2.13 installed.
Comment by: Arkham on Thu, 25 Jun 2009 20:42:53 +0000
You can find this game also in the arch-games repo, so that you won't have to build it by yourself. You can find it here: http://twilightlair.net:3000/projects/gaming-repo
Comment by: Arkham on Thu, 25 Jun 2009 19:53:45 +0000
Adopted and fixed.
Comment by: RandyPenguin on Tue, 24 Feb 2009 21:41:48 +0000
correct URL is http://voxel.dl.sourceforge.net/sourceforge/brutalchess/brutalchess-alpha-0.5.2-src.tar.gz
Comment by: abhidg on Sun, 08 Jun 2008 05:22:17 +0000
It's better to put a || return 1 after all lines which if it fails should result in a failure to make the package:
make DESTDIR=$startdir/pkg install || return 1

With regards to:
rm -rf $startdir/pkg/usr/share/$pkgname/doc/
doesn't makepkg strip docs anyway?

Also the new source url for sf packages is
of the form
http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.bz2



Comment by: jeebusroxors on Sat, 07 Jun 2008 20:08:57 +0000
Implemented the seds from below.
Added x86_64
Comment by: divineant on Thu, 22 May 2008 21:50:30 +0000
Got an error saying INT_MAX was not defined in scope.

Fixed by adding:

sed '/<time.h>/ a\#include <limits.h>' -i src/brutalplayer.cpp

before make in build()
Comment by: leo72 on Mon, 07 Apr 2008 17:24:58 +0000
Does not compile & install anymore after libtool and gcc have been upgraded (respectively to 2.2 and 4.3).

It stops with several errors during make.
Comment by: hybrid on Sun, 23 Dec 2007 17:24:34 +0000
I just really want to know how you got the quake-tileset working.. that's still a mistery for me.
Comment by: kesara on Sun, 18 Nov 2007 20:50:30 +0000
I was able compile it by adding
sed 's|GLvoid|void|g' -i src/md3view.cpp
sed 's|GLvoid|void|g' -i src/objview.cpp
before
make || return 1
in PKGBUILD
Comment by: kesara on Sun, 18 Nov 2007 20:41:37 +0000
I got an error while building brutalchess.

md3view.cpp:75: error: '<anonymous>' has incomplete type
md3view.cpp:75: error: invalid use of 'GLvoid'
md3view.cpp: In function 'int resizeWindow(int, int)':
md3view.cpp:75: error: too few arguments to function 'int initGL(<type error>)'
md3view.cpp:105: error: at this point in file
md3view.cpp: At global scope:
md3view.cpp:111: error: '<anonymous>' has incomplete type
md3view.cpp:111: error: invalid use of 'GLvoid'
md3view.cpp: In function 'int main(int, char**)':
md3view.cpp:111: error: too few arguments to function 'int initGL(<type error>)'
md3view.cpp:388: error: at this point in file
make[2]: *** [md3view.o] Error 1
make[2]: Leaving directory `/var/abs/brutalchess/src/brutalchess-0.5.2/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/var/abs/brutalchess/src/brutalchess-0.5.2/src'
make: *** [all-recursive] Error 1
==> ERROR: Build Failed. Aborting...
Comment by: philippk on Sat, 03 Nov 2007 22:37:50 +0000
this does not build correctly for me. this are the last few lines:
md3view.cpp:75: error: '<anonymous>' has incomplete type
md3view.cpp:75: error: invalid use of 'GLvoid'
md3view.cpp: In function 'int resizeWindow(int, int)':
md3view.cpp:75: error: too few arguments to function 'int initGL(<type error>)'
md3view.cpp:105: error: at this point in file
md3view.cpp: At global scope:
md3view.cpp:111: error: '<anonymous>' has incomplete type
md3view.cpp:111: error: invalid use of 'GLvoid'
md3view.cpp: In function 'int main(int, char**)':
md3view.cpp:111: error: too few arguments to function 'int initGL(<type error>)'
md3view.cpp:388: error: at this point in file
make[2]: *** [md3view.o] Error 1
make[2]: Leaving directory `/var/tmp/aurbuild/build/brutalchess.15893/brutalchess/src/brutalchess-0.5.2/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/var/tmp/aurbuild/build/brutalchess.15893/brutalchess/src/brutalchess-0.5.2/src'
make: *** [all-recursive] Error 1
==> ERROR: Build Failed. Aborting...

aurbuild: could not build "brutalchess" with makepkg.
build directory retained at `/var/tmp/aurbuild/build/brutalchess.15893'
In some cases you may be able to cd into the directory, fix the problem and run makepkg with success.
Comment by: rabyte on Mon, 22 Oct 2007 14:08:54 +0000
Works perfectly for me w/o copying any models.
To get it to compile with recent versions of gcc, you need to add the the following line before the make command:
sed 's|GLvoid|void|g' -i src/objview.cpp
Comment by: hybrid on Wed, 01 Aug 2007 12:28:34 +0000
K, I fifured out that you'll need to download a couple third party q3 skins but does anyone know which ones?
Well telling from the error message the cloudstrife model is one of them. But when I download it, extract the model-directory from the pk3 (cuz brutalchess looks in art/models/ for the model and not in art/*.pk3/models/) and then start it, it doesnt tell me which other models it needs. It just hangs on the load on startup.
Comment by: hybrid on Wed, 18 Jul 2007 17:26:34 +0000
Yay, I love it! But how do I 'brutalize' it?
Comment by: sespo on Thu, 29 Mar 2007 10:43:22 +0000
Updated to the latest version
Comment by: ise on Thu, 01 Feb 2007 00:21:57 +0000
The new version alpha0.5.2 works great. I have used the following PKGBUILD:

pkgname=brutalchess
pkgver=alpha0.5.2
pkgrel=1
pkgdesc=\"Chess game inspired by \'Battle Chess\'. Features full 3D graphics, an advanced particle engine, and several different levels of AI\"
url=\"http://brutalchess.sf.net\"
license=\"GPL\"
depends=(\'mesa\' \'sdl_image\')
source=(\"http://dl.sourceforge.net/sourceforge/$pkgname/$pkgname-alpha-0.5.2-src.tar.gz\")

build() {
cd $startdir/src/$pkgname-0.5.2
./configure --prefix=/usr
make || return 1
make DESTDIR=$startdir/pkg install
}
md5sums=(\'370476b63091b8d82a9ea57c604dcbab\')

The patch is not necessary anymore. And I didn\'t check the dependency.
Comment by: depaloan on Sat, 28 Oct 2006 11:52:37 +0000
Maybe patch should be added to dependencies.
Comment by: gauntalus on Sun, 03 Sep 2006 18:33:09 +0000
Hi Everyone,

I am one of the developers of Brutal Chess, and we tracked back this URL from our development blog. I see that some of you are having issues building Brutal Chess, and we would like to help support anyone having problems.

If you\'re having issues you can send an email to brutalchess-devel [AT] lists.sourceforge [DOT] net, or post in our forums which can be found at http://sourceforge.net/forum/?group_id=139550.

We\'re pretty psyched that you\'ve found our game, feel free to give us feedback or make suggestions, we really listen to our user community.

-Mike
Comment by: sespo on Wed, 30 Aug 2006 15:06:09 +0000
Fixed \"Failed to load model issue\".
Comment by: rabyte on Thu, 24 Aug 2006 15:28:57 +0000
\"Failed to load models\"

Same here :-(
Comment by: Romashka on Thu, 17 Aug 2006 07:44:36 +0000
I still get this error:
Failed to load models
Any ideas why it is not wokring? Maybe there should be some yet another package in depends?
Comment by: sespo on Sun, 06 Aug 2006 11:39:37 +0000
Fixed source array
Comment by: sespo on Sun, 06 Aug 2006 11:35:45 +0000
Well... to do the work of the patch with only sed, it whould be something like

build () {
cd $startdir/src/$pkgname-alpha-0.3
sed -i \"s|models/|/usr/share/$pkgname/models|g\" brutalchess.cpp
sed -i \"s|VeraMono.ttf|/usr/share/$pkgname/VeraMono.ttf|g\" brutalchess.cpp
sed -i \"s|marblehugewhite.png|/usr/share/$pkgname/marblehugewhite.png|g\" brutalchess.cpp
sed -i \"s|marblehugeblack.png|/usr/share/$pkgname/marbelhugeblack.png|g\" brutalchess.cpp
make || return 1
install -D -m755 brutalchessconsole $startdir/pkg/usr/bin/brutalchessconsole
install -D -m755 brutalchess $startdir/pkg/usr/bin/brutalchess
install -d $startdir/pkg/usr/share/models
install -m644 models/* -t $startdir/pkg/usr/share/models
install -D -m644 marblehugeblack.png $startdir/pkg/usr/share
install -D -m644 marblehugewhite.png $startdir/pkg/usr/share/
install -D -m644 VeraMono.ttf $startdir/pkg/usr/share
}

Now... maybe i\'m wrong but i think that

build () {
cd $startdir/src/$pkgname-alpha-0.3
patch -p1 < ../brutalchess.patch
make || return 1
make DESTDIR=$startdir/pkg install
}

is much more simple and elegant...
Comment by: rabyte on Sat, 05 Aug 2006 11:24:50 +0000
Maybe it\'s better to not use variables everywhere:

build() {
cd $startdir/src/$pkgname-alpha-$pkgver
sed -i \"s|models/|/usr/share/brutalchess/models/|g\" $startdir/src/$pkgname-alpha-$pkgver/brutalchess.cpp
make || return 1
install -D $startdir/src/$pkgname-alpha-$pkgver/brutalchess $startdir/pkg/usr/bin/brutalchess
install -d $startdir/src/$pkgname-alpha-$pkgver/models $startdir/pkg/usr/share/brutalchess/models
install -m644 $startdir/src/$pkgname-alpha-$pkgver/models/*.obj $startdir/pkg/usr/share/brutalchess/models
}
Comment by: rabyte on Sat, 05 Aug 2006 11:17:33 +0000
Don\'t know if it\'s the most elegant solution, but should make the patch unnecessary:

build() {
cd $startdir/src/$pkgname-alpha-$pkgver
sed -i \"s|models/|/usr/share/$pkgname/models/|g\" $startdir/src/$pkgname-alpha-$pkgver/brutalchess.cpp
make || return 1
install -D $startdir/src/$pkgname-alpha-$pkgver/brutalchess $startdir/pkg/usr/bin/$pkgname
install -d $startdir/src/$pkgname-alpha-$pkgver/models $startdir/pkg/usr/share/$pkgname/models
install -m644 $startdir/src/$pkgname-alpha-$pkgver/models/*.obj $startdir/pkg/usr/share/$pkgname/models
}
Comment by: sespo on Sat, 05 Aug 2006 10:43:21 +0000
Minor fixes to the PKGBUILD
Comment by: sespo on Sat, 05 Aug 2006 10:40:15 +0000
Fixed dependencies. Fixed url.
The patch is needed to add an install method to the package, and to fix path in the sources, to permit installation of binaries under /usr/bin.
Comment by: blackpenguin on Thu, 03 Aug 2006 13:29:25 +0000
The homepage of this project is http://brutalchess.sf.net please correct the PKGBUILD
Comment by: karsten on Wed, 02 Aug 2006 21:28:06 +0000
$ brutalchess

Failed to load models
Comment by: sespo on Wed, 02 Aug 2006 16:06:16 +0000
Chess game inspired by \"Battle Chess\". Features full 3D graphics, an advanced particle engine, and several different levels of intelligent AI.

v1.6.0