From 994283278887b4a7d84ce73f193e0b5ad32d6449 Mon Sep 17 00:00:00 2001 From: Yaksh Bariya Date: Sun, 4 Jul 2021 22:03:33 +0530 Subject: [PATCH] Cache depeneencies for `aerc` on device builds --- packages/aerc/build.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 }