You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
1.3 KiB
32 lines
1.3 KiB
8 years ago
|
# NOTE: This program includes external libraries in their source code: pnglite, wavpack and zlib. Due to how this program is built, it's hard to link with the system ones instead.
|
||
|
|
||
|
name=teeworlds
|
||
8 years ago
|
version=0.6.4
|
||
8 years ago
|
update_url='https://www.teeworlds.com/?page=downloads'
|
||
|
|
||
|
dlextract "https://downloads.teeworlds.com/$name-$version-src.tar.gz" \
|
||
8 years ago
|
'9733800c12462ac4d5a5a4f6ea750af0'
|
||
8 years ago
|
extrafile "$name.desktop"
|
||
|
header_end
|
||
|
|
||
|
cd "$name-$version-src"
|
||
|
convert other/icons/Teeworlds.ico "$name.png"
|
||
|
|
||
|
# Allow for custom CFLAGS
|
||
|
sed -i -e "/CONF_RELEASE/arelease_settings.cc.flags:Add('$CFLAGS')\nrelease_settings.link.flags:Add('$LDFLAGS')" bam.lua
|
||
|
|
||
|
# Fix data path
|
||
8 years ago
|
sed -i -e "s/\/usr\/share\/$name\/data/$(safe_sed "$dir_sysroot/$dir_prefix/$dir_datadir/$name")/" src/engine/shared/storage.cpp
|
||
8 years ago
|
|
||
|
bam-0.4 $BAMFLAGS game_release
|
||
|
|
||
|
mkdir -p "$dir_install/$dir_prefix/$dir_datadir/$name"
|
||
|
cp -a data/* "$dir_install/$dir_prefix/$dir_datadir/$name/"
|
||
|
|
||
|
install -Dm755 "$name" "$dir_install/$dir_prefix/$dir_bindir/$name"
|
||
|
install -Dm755 "${name}_srv" "$dir_install/$dir_prefix/$dir_bindir/${name}_srv"
|
||
|
install -Dm644 "$name-0.png" "$dir_install/$dir_prefix/$dir_datadir/pixmaps/$name.png"
|
||
|
install -Dm644 "../$name.desktop" "$dir_install/$dir_prefix/$dir_datadir/applications/$name.desktop"
|
||
|
|
||
8 years ago
|
# vim:set tabstop=4 shiftwidth=4 syntax=sh expandtab:
|