From 7c57d72e8021e64ee834f64c95173816d55ed35d Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Sat, 3 Sep 2016 17:38:15 -0400 Subject: [PATCH] abduco&dvtm: Avoid modifying CFLAGS directly --- packages/abduco/build.sh | 5 +++-- packages/dvtm/build.sh | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/abduco/build.sh b/packages/abduco/build.sh index 7912ef8e8..71cbe2179 100644 --- a/packages/abduco/build.sh +++ b/packages/abduco/build.sh @@ -5,5 +5,6 @@ TERMUX_PKG_SRCURL=http://www.brain-dump.org/projects/abduco/abduco-${TERMUX_PKG_ TERMUX_PKG_BUILD_IN_SRC=yes TERMUX_PKG_DEPENDS="libutil,dvtm" -export PREFIX=$TERMUX_PREFIX -CFLAGS+=" $CPPFLAGS" +termux_step_pre_configure () { + CFLAGS+=" $CPPFLAGS" +} diff --git a/packages/dvtm/build.sh b/packages/dvtm/build.sh index 3775ec75f..a501775e6 100644 --- a/packages/dvtm/build.sh +++ b/packages/dvtm/build.sh @@ -5,5 +5,6 @@ TERMUX_PKG_SRCURL=http://www.brain-dump.org/projects/dvtm/dvtm-${TERMUX_PKG_VERS TERMUX_PKG_BUILD_IN_SRC=yes TERMUX_PKG_DEPENDS="libutil, ncurses" -export PREFIX=$TERMUX_PREFIX -CFLAGS+=" $CPPFLAGS" +termux_step_pre_configure() { + CFLAGS+=" $CPPFLAGS" +}