From c778cc295e0559accc70aeb439af0cc3f73d3f3c Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Mon, 15 Oct 2018 14:28:51 +0200 Subject: [PATCH] teeworlds: update to 0.6.5. --- srcpkgs/teeworlds/template | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/srcpkgs/teeworlds/template b/srcpkgs/teeworlds/template index f8631d772af..961fab08bbb 100644 --- a/srcpkgs/teeworlds/template +++ b/srcpkgs/teeworlds/template @@ -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 " +maintainer="Leah Neukirchen " 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