updated on Mon Jan 16 00:01:41 UTC 2012
[aur-mirror.git] / sem / PKGBUILD
blobae37186b34a2ac253516e7c8cacb35e14a09ffd0
1 # Contributor: jose <jose1711 [at] gmail (dot) com>
3 pkgname=sem
4 pkgver=0.4
5 pkgrel=2
6 pkgdesc="an unfinished 3d worms/scorched 3d clone"
7 url=('http://hippo.nipax.cz/download.cz.php?id=69')
8 arch=('i686')
9 license="GPL-2"
10 depends=('sdl' 'sdl_ttf' 'sdl_image')
11 source="http://hippo.nipax.cz/src/${pkgname}-${pkgver}-src.tar.gz"
12 md5sums=('4f69ac684cf3f9a2d3bd70ec7a05ec51')
14 build() {
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
19 make depend
20 make
23 package() {
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
32 ( echo "#!/bin/bash
33 cd /usr/share/sem
34 ./sem" ) > $pkgdir/usr/bin/sem
35 chmod 755 $pkgdir/usr/bin/sem