blob: eb6609c295361aa737ffcd0ab42cd1484f8bc51d (
plain)
1 # Description: multiplayer 2D 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.0
8 _bamver=0.2.0
9 release=1
10 source=(http://www.$name.com/files/$name-$version-src.tar.gz
11 http://maxiq.ovh.org/CRUX/bam-$_bamver.tar.gz
12 gui_tee.png $name.desktop $name.bash ${name}_srv.bash)
13
14 build() {
15 mkdir -p $PKG/usr/share/$name
16 # build bam
17 cd bam-$_bamver
18 ./make_unix.sh $CFLAGS
19 # build teeworlds
20 cd $SRC/$name-$version-src
21 # everytime developer chooses bam for his project, god kills a kitten
22 sed -i "/settings\.cc\.flags:Add(\"-Wall\", \"-fno-exceptions\")/s|)|, \"$CFLAGS\" )|" default.bam
23 ../bam-$_bamver/src/bam release
24 install -m 0755 $name ${name}_srv $PKG/usr/share/$name
25 cp -r data $PKG/usr/share/$name
26
27 cd $SRC
28 install -D -m 0644 $name.desktop $PKG/usr/share/applications/$name.desktop
29 install -D -m 0644 gui_tee.png $PKG/usr/share/pixmaps/gui_tee.png
30 install -D -m 0755 $name.bash $PKG/usr/bin/$name
31 install -m 0755 ${name}_srv.bash $PKG/usr/bin/${name}_srv
32 }
|