From cdc733d3bb1ac69510ceff2cd3ef671bd6fec33c Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 16 Feb 2015 10:41:36 +0100 Subject: [PATCH] runit: move conditional to do_build(). --- srcpkgs/runit/template | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/srcpkgs/runit/template b/srcpkgs/runit/template index 6c0fa4ee291..476fc8172a3 100644 --- a/srcpkgs/runit/template +++ b/srcpkgs/runit/template @@ -11,14 +11,15 @@ distfiles="http://smarden.org/runit/runit-$version.tar.gz" checksum=6fd0160cb0cf1207de4e66754b6d39750cff14bb0aa66ab49490992c0c47ba18 build_options="static" -if [ "$build_option_static" ]; then - CFLAGS+=" -static" - LDFLAGS+=" -static" -fi do_build() { cd ${pkgname}-${version}/src + if [ "$build_option_static" ]; then + CFLAGS+=" -static" + LDFLAGS+=" -static" + fi + sed -e 's,sbin/runit,usr/bin/runit,g' -i runit.h echo "$CC -D_GNU_SOURCE $CFLAGS" >conf-cc