blob: d7d7fc0c054579094aa7b746bdb0bf96e2dc4542 (
plain)
1 # Description: retro multiplayer shooter
2 # URL: http://www.teeworlds.com/
3 # Maintainer: Bartlomiej Palmowski, rotwang at crux dot org dot pl
4 # Depends on: alsa-lib python libsdl
5
6 name=teeworlds
7 version=0.5.2
8 _bamver=0.2.0
9 release=2
10 source=(
11 http://www.$name.com/files/$name-$version-src.tar.gz
12 http://www.$name.com/files/bam-$_bamver.tar.gz
13 gui_tee.png $name.desktop $name.bash ${name}_srv.bash)
14
15 build() {
16 mkdir -p $PKG/usr/share/$name
17 # build bam
18 cd bam-$_bamver
19 ./make_unix.sh $CFLAGS
20 # build teeworlds
21 cd $SRC/$name-$version-src
22 # everytime developer chooses bam for his project, god kills a kitten
23 sed -i "/settings\.cc\.flags:Add(\"-Wall\", \"-fno-exceptions\")/s|)|, \"$CFLAGS\" )|" default.bam
24 ../bam-$_bamver/src/bam server_release client_release
25 install -m 0755 $name ${name}_srv $PKG/usr/share/$name
26 cp -r data $PKG/usr/share/$name
27
28 cd $SRC
29 install -D -m 0644 $name.desktop $PKG/usr/share/applications/$name.desktop
30 install -D -m 0644 gui_tee.png $PKG/usr/share/pixmaps/gui_tee.png
31 install -D -m 0755 $name.bash $PKG/usr/bin/$name
32 install -m 0755 ${name}_srv.bash $PKG/usr/bin/${name}_srv
33 }
|