From 856b9113889906f10a181131d7ab729bd95e9e91 Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Sun, 17 May 2015 16:19:07 +0200 Subject: [PATCH] tgt: fix CFLAGS. --- srcpkgs/tgt/template | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/srcpkgs/tgt/template b/srcpkgs/tgt/template index 865a982b1eb..e1b6096fb5a 100644 --- a/srcpkgs/tgt/template +++ b/srcpkgs/tgt/template @@ -1,7 +1,7 @@ # Template file for 'tgt' pkgname=tgt version=1.0.58 -revision=1 +revision=2 build_style=gnu-makefile make_install_args="sbindir=/usr/bin" conf_files="/etc/tgt/targets.conf" @@ -15,6 +15,10 @@ homepage="http://stgt.sourceforge.net/" distfiles="https://github.com/fujita/tgt/archive/v${version}.tar.gz" checksum=3ae59c7374c68b3ef5abf472895d81dd1b036d0301b4111f272de154dbb082a9 +post_extract() { + sed -i 's/CFLAGS/MYCFLAGS/; s/\$(MYCFLAGS)/& $(CFLAGS)/g' usr/Makefile + +} post_install() { for f in ${DESTDIR}/etc/tgt/examples/*; do vsconf $f