From b3e9ac792aefaa1d803b54df076ba884ebe7ee0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Thu, 3 Sep 2020 21:44:08 +0700 Subject: [PATCH] invada-studio-plugins-lv2: honour our build flags --- srcpkgs/invada-studio-plugins-lv2/template | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/srcpkgs/invada-studio-plugins-lv2/template b/srcpkgs/invada-studio-plugins-lv2/template index 1e776a394a9..6bd6ddf74a5 100644 --- a/srcpkgs/invada-studio-plugins-lv2/template +++ b/srcpkgs/invada-studio-plugins-lv2/template @@ -1,9 +1,8 @@ # Template file for 'invada-studio-plugins-lv2' pkgname=invada-studio-plugins-lv2 version=1.2.0 -revision=1 +revision=2 build_style=gnu-makefile -make_use_env=yes hostmakedepends="pkg-config" makedepends="lv2 gtk+-devel" short_desc="Invada Studio LV2 plugins" @@ -13,8 +12,16 @@ homepage="https://launchpad.net/invada-studio/" distfiles="https://launchpad.net/invada-studio/lv2/1.2/+download/${pkgname}_${version}-nopkg.tgz" checksum=c6cac7c32effc6b3052e3b017133244f385ef8e053147859d88eae6facaf7d12 +post_patch() { + find . -name Makefile -exec \ + sed -i -e ' + /CFLAGS/{s/CFLAGS/ALL_CFLAGS/;s/=/= $(CFLAGS)/; s/-O3//} + /LDFLAGS/{s/LDFLAGS/ALL_LDFLAGS/;s/=/= $(LDFLAGS)/} + ' {} + +} + pre_build() { - make_build_args="CC=${CC} LD=${CC}" + LD=$CC } do_install() {