abduco&dvtm: Avoid modifying CFLAGS directly
authorFredrik Fornwall <fredrik@fornwall.net>
Sat, 3 Sep 2016 21:38:15 +0000 (17:38 -0400)
committerFredrik Fornwall <fredrik@fornwall.net>
Sat, 3 Sep 2016 21:38:15 +0000 (17:38 -0400)
packages/abduco/build.sh
packages/dvtm/build.sh

index 7912ef8..71cbe21 100644 (file)
@@ -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"
+}
index 3775ec7..a501775 100644 (file)
@@ -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"
+}