teeworlds: update to 0.6.5.

This commit is contained in:
Leah Neukirchen 2018-10-15 14:28:51 +02:00
parent 21247a40a4
commit c778cc295e
1 changed files with 10 additions and 5 deletions

View File

@ -1,16 +1,16 @@
# Template file for 'teeworlds'
pkgname=teeworlds
version=0.6.4
version=0.6.5
revision=1
wrksrc="${pkgname}-${version}-src"
hostmakedepends="bam python"
makedepends="zlib-devel SDL-devel glu-devel freetype-devel"
short_desc="A retro multiplayer shooter"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="custom"
homepage="https://www.teeworlds.com"
distfiles="https://downloads.teeworlds.com/${pkgname}-${version}-src.tar.gz"
checksum=c261d19ebb00b5451faa2ceb4a7ca945cad2add48b06046eb43b40ccc9fd98e2
checksum=0bd3b85c76437138438f8cd7848251d0085e19026e0f89656a2fb44398ec941e
do_configure() {
if [ -n "$CROSS_BUILD" ]; then
@ -20,14 +20,19 @@ do_configure() {
other/freetype/freetype.lua
fi
sed -i "/cc.includes:Add/a\
if [ "$CC" = cc ]; then
# argh, bam is useless
export CC=gcc
fi
sed -i "/cc.includes:Add.\"src\"/a\
settings.cc.exe_c = '$CC'; \
settings.cc.exe_cxx = '$CXX'; \
settings.cc.flags_c:Add('$CFLAGS'); \
settings.cc.flags_cxx:Add('$CXXFLAGS'); \
settings.link.exe = '$CXX'; \
settings.link.flags:Add('${LDFLAGS}');" bam.lua
bam -v config
bam -t -v config
}
do_build() {
bam -v server_release client_release