1 # Contributor: jose <jose1711 [at] gmail (dot) com>
6 pkgdesc="an unfinished 3d worms/scorched 3d clone"
7 url=('http://hippo.nipax.cz/download.cz.php?id=69')
10 depends=('sdl' 'sdl_ttf' 'sdl_image')
11 source="http://hippo.nipax.cz/src/${pkgname}-${pkgver}-src.tar.gz"
12 md5sums=('4f69ac684cf3f9a2d3bd70ec7a05ec51')
15 mkdir -p $pkgdir/usr/{share/sem/{data/{bullets,players,terrains},cfg/terrains},bin}
16 cd $srcdir/${pkgname}-${pkgver}-src
17 # some patching needed here
18 sed -i 's/^#include "cparticleengine.h"/#include <algorithm>\n&/' cparticleengine.cpp
24 cd $srcdir/${pkgname}-${pkgver}-src
25 install -D -m755 sem $pkgdir/usr/share/sem/sem
26 install -D -m644 cfg/terrains/* $pkgdir/usr/share/sem/cfg/terrains
27 install -D -m644 cfg/basecode.ini $pkgdir/usr/share/sem/cfg/basecode.ini
28 install -D -m644 data/bullets/* $pkgdir/usr/share/sem/data/bullets
29 install -D -m644 data/players/* $pkgdir/usr/share/sem/data/players
30 install -D -m644 data/terrains/* $pkgdir/usr/share/sem/data/terrains
31 install -D -m644 data/* $pkgdir/usr/share/sem/data || true
34 ./sem" ) > $pkgdir/usr/bin/sem
35 chmod 755 $pkgdir/usr/bin/sem