diff --git a/srcpkgs/teeworlds/template b/srcpkgs/teeworlds/template index b7c5f74c10..ab181cd8af 100644 --- a/srcpkgs/teeworlds/template +++ b/srcpkgs/teeworlds/template @@ -1,7 +1,7 @@ # Template file for 'teeworlds' pkgname=teeworlds version=0.6.3 -revision=2 +revision=3 nocross=yes wrksrc="${pkgname}-${version}-src" hostmakedepends="bam" @@ -13,10 +13,19 @@ homepage="https://www.teeworlds.com" distfiles="https://downloads.teeworlds.com/${pkgname}-${version}-src.tar.gz" checksum=490ee7c372898761c609af8d7b0c6bd55942c6c6fcd7f361eefa00abfc70077b -do_build() { - bam server_release client_release +do_configure() { + sed -i "/cc.includes:Add/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 +} +do_build() { + bam -v server_release client_release } - do_install() { vbin teeworlds vbin teeworlds_srv