2009-01-23 12:37:55 +01:00
|
|
|
# Description: retro multiplayer shooter
|
2008-05-12 22:54:10 +02:00
|
|
|
# URL: http://www.teeworlds.com/
|
2009-01-10 14:30:03 +01:00
|
|
|
# Maintainer: Bartlomiej Palmowski, rotwang at crux dot org dot pl
|
2009-01-18 14:38:36 +01:00
|
|
|
# Depends on: alsa-lib python libsdl
|
2008-05-12 22:54:10 +02:00
|
|
|
|
|
|
|
name=teeworlds
|
2010-09-13 18:13:46 +02:00
|
|
|
version=0.5.2
|
2009-01-18 14:35:30 +01:00
|
|
|
_bamver=0.2.0
|
2009-06-11 19:32:37 +02:00
|
|
|
release=2
|
2010-09-13 18:13:46 +02:00
|
|
|
source=(
|
|
|
|
http://www.$name.com/files/$name-$version-src.tar.gz
|
2009-01-23 12:37:55 +01:00
|
|
|
http://www.$name.com/files/bam-$_bamver.tar.gz
|
2009-01-18 14:35:30 +01:00
|
|
|
gui_tee.png $name.desktop $name.bash ${name}_srv.bash)
|
2008-05-12 22:54:10 +02:00
|
|
|
|
|
|
|
build() {
|
|
|
|
mkdir -p $PKG/usr/share/$name
|
2009-01-18 14:35:30 +01:00
|
|
|
# build bam
|
|
|
|
cd bam-$_bamver
|
|
|
|
./make_unix.sh $CFLAGS
|
|
|
|
# build teeworlds
|
2008-05-12 22:54:10 +02:00
|
|
|
cd $SRC/$name-$version-src
|
2009-01-18 14:35:30 +01:00
|
|
|
# everytime developer chooses bam for his project, god kills a kitten
|
|
|
|
sed -i "/settings\.cc\.flags:Add(\"-Wall\", \"-fno-exceptions\")/s|)|, \"$CFLAGS\" )|" default.bam
|
2009-01-18 14:47:00 +01:00
|
|
|
../bam-$_bamver/src/bam server_release client_release
|
2009-01-18 14:35:30 +01:00
|
|
|
install -m 0755 $name ${name}_srv $PKG/usr/share/$name
|
2008-05-12 22:54:10 +02:00
|
|
|
cp -r data $PKG/usr/share/$name
|
2009-01-18 14:35:30 +01:00
|
|
|
|
|
|
|
cd $SRC
|
2008-05-12 22:54:10 +02:00
|
|
|
install -D -m 0644 $name.desktop $PKG/usr/share/applications/$name.desktop
|
2009-01-18 14:35:30 +01:00
|
|
|
install -D -m 0644 gui_tee.png $PKG/usr/share/pixmaps/gui_tee.png
|
|
|
|
install -D -m 0755 $name.bash $PKG/usr/bin/$name
|
|
|
|
install -m 0755 ${name}_srv.bash $PKG/usr/bin/${name}_srv
|
2008-05-12 22:54:10 +02:00
|
|
|
}
|