From 67e3702b6724f69c5d343b3279d05f70bc763868 Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Mon, 15 Jan 2018 11:40:06 +0100 Subject: [PATCH] gnurobbo: fix build --- srcpkgs/gnurobbo/template | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/srcpkgs/gnurobbo/template b/srcpkgs/gnurobbo/template index 3fec87c876..486c7989f1 100644 --- a/srcpkgs/gnurobbo/template +++ b/srcpkgs/gnurobbo/template @@ -1,7 +1,7 @@ # Template file for 'gnurobbo' pkgname=gnurobbo version=0.68 -revision=2 +revision=3 build_wrksrc=gnurobbo build_style=gnu-makefile hostmakedepends="pkg-config" @@ -15,8 +15,9 @@ checksum=6c7e9e425655da02c2442d13b5fa8f542af62d2c8f253db2fb63470c5c0c3db8 pre_build() { sed -i Makefile \ - -e "s;CFLAGS\?=.*;CFLAGS=${CFLAGS};" \ - -e "s;LDFLAGS\?=.*;LDFLAGS=${LDFLAGS};" \ + -e "s;\(CFLAGS\?+=\)-d;\1;" \ + -e "s;CFLAGS+\?=;\0 ${CFLAGS} ;" \ + -e "s;LDFLAGS+\?=;\0 ${LDFLAGS} ;" \ -e "/LIBS=/s;\(.*\);\1 -lm;" }