33 lines
1.0 KiB
Plaintext
33 lines
1.0 KiB
Plaintext
# Description: multiplayer 2D shooter
|
|
# URL: http://www.teeworlds.com/
|
|
# Maintainer: Bartlomiej Palmowski, maks1k at wp dot pl
|
|
# Depends on: mesa3d alsa-lib xorg-libx11 python
|
|
|
|
name=teeworlds
|
|
version=0.4.2
|
|
release=2
|
|
source=(http://www.$name.com/files/$name-$version-src.tar.gz
|
|
http://www.$name.com/files/bam.zip
|
|
gui_tee.png
|
|
$name.desktop)
|
|
|
|
build() {
|
|
mkdir -p $PKG/usr/share/$name
|
|
cd bam
|
|
./make_unix.sh $LDFLAGS $CFLAGS
|
|
|
|
cd $SRC/$name-$version-src
|
|
sed -i 's|data/|/usr/share/teeworlds/data/|g' $(fgrep -Rl '"data/' *)
|
|
sed -i -e "/cc.flags/s/=.*/= \"$CFLAGS\"/" \
|
|
-e "/linker.flags/s|\"\"|\"$LDFLAGS\"|" \
|
|
-e '/release_settings.cc.optimize/s/1/0/' default.bam
|
|
../bam/src/bam -v server_release client_release
|
|
|
|
install -D -m 0755 $name $PKG/usr/bin/$name
|
|
install -m 0755 ${name}_srv $PKG/usr/bin
|
|
cp -r data $PKG/usr/share/$name
|
|
cd ..
|
|
install -D -m 0644 $name.desktop $PKG/usr/share/applications/$name.desktop
|
|
install -m 0644 gui_tee.png $PKG/usr/share/$name/data/gui_tee.png
|
|
}
|