diff --git a/packages/aerc/build.sh b/packages/aerc/build.sh index 5756b2f37..fc41d08fd 100644 --- a/packages/aerc/build.sh +++ b/packages/aerc/build.sh @@ -10,4 +10,14 @@ TERMUX_PKG_BUILD_IN_SRC=true termux_step_pre_configure() { termux_setup_golang + if $TERMUX_ON_DEVICE_BUILD; then + export GOPATH=$TERMUX_PKG_SRCDIR/go + if [ -d $TERMUX_PKG_CACHEDIR/go ]; then + cp $TERMUX_PKG_CACHEDIR/go $GOPATH -r + else + go get + cp $TERMUX_PKG_SRCDIR/go $TERMUX_PKG_CACHEDIR/go -r + fi + + fi }