From a19b01c375d30884233f49a189246e497a8981a2 Mon Sep 17 00:00:00 2001 From: Ypnose Date: Fri, 12 Jun 2015 21:44:02 +0200 Subject: [PATCH] smu: fix CFLAGS & LDFLAGS --- srcpkgs/smu/template | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/srcpkgs/smu/template b/srcpkgs/smu/template index 43252ef42b..b1443806a6 100644 --- a/srcpkgs/smu/template +++ b/srcpkgs/smu/template @@ -1,7 +1,7 @@ # Template file for 'smu' pkgname=smu version=1.4 -revision=2 +revision=3 build_style=gnu-makefile make_build_args="INCS=-I. LIBS=" short_desc="Simple markup - markdown like syntax" @@ -12,8 +12,8 @@ distfiles="https://github.com/Gottox/smu/archive/v${version}.tar.gz" checksum="378f24e6cff54dcfcbc7a17a88f16efb59c0cda1d35f58967e16fd990ba15f45" pre_build() { - sed -i 's|^CFLAGS =|CFLAGS +=|g; s|-O0||g' config.mk - sed -i 's|^LDFLAGS =|LDFLAGS +=|g' config.mk + sed -i 's|^CFLAGS =.*|override CFLAGS += -DVERSION=\"${VERSION}\"|g' config.mk + sed -i 's|^LDFLAGS =|override LDFLAGS +=|g' config.mk } post_install() {