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
9 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
|
||
|
version=0.6.3
|
||
|
update_url='https://www.teeworlds.com/?page=downloads'
|
||
|
|
||
|
dlextract "https://downloads.teeworlds.com/$name-$version-src.tar.gz" \
|
||
|
'bbe9faa26caf796bcdffc4bc635118fd'
|
||
|
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
|
||
|
sed -i -e "s/usr\/share\/$name\/data/$(safe_sed "$dir_prefix/$dir_datadir/$name")/" src/engine/shared/storage.cpp
|
||
|
|
||
|
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"
|
||
|
|
||
|
# vim:set tabstop=4 shiftwidth=4 syntax=sh et:
|