1 # Contributor: MCMic <come.bernigaud@laposte.net>
3 pkgname=geneticinvasion
6 pkgdesc="A Tower Defence game that uses evolutionary algorithm"
8 url="http://projects.haxx.es/p/genetic-invasion"
10 depends=('libeo' 'mesa')
11 makedepends=('make' 'cmake')
13 if test "$CARCH" == 'i686'; then
18 source=("http://projects.haxx.es/media/upload/genetic-invasion/files/genetic-invasion-v$pkgver.zip" "http://downloads.sourceforge.net/sfml/SFML-1.6-sdk-linux-$sfml_arch.tar.gz" 'FindSFML.cmake')
19 if test "$sfml_arch" == "32"; then
20 md5sums=('a9b3b6e128170afb167a45616d6ea022'
21 'acc678933c19558587aad8332ea6f459'
22 'f6358382450150804d773a1d0b0777db')
24 md5sums=('a9b3b6e128170afb167a45616d6ea022'
25 '7a9b3a1ef6d14cd25090e440ccdbb3a8'
26 'f6358382450150804d773a1d0b0777db')
31 sed -i "24i#define NULL 0" include/SFML/System/ResourcePtr.inl
33 sed -i "24d" include/SFML/System/ResourcePtr.inl
35 cd $srcdir/genetic-invasion-v$pkgver
36 cp $srcdir/FindSFML.cmake $srcdir/genetic-invasion-v$pkgver/cmake/modules
37 cmake -DCMAKE_BUILD_TYPE=Release -DSFML_STATIC=true -DSFMLDIR=../SFML-1.6 -DCMAKE_INSTALL_PREFIX=/usr .
39 make install DESTDIR=$pkgdir