Cache depeneencies for aerc on device builds

This commit is contained in:
Yaksh Bariya 2021-07-04 22:03:33 +05:30
parent 3ed4c8eec4
commit 9942832788
No known key found for this signature in database
GPG Key ID: F7486BA7D3D27581

View File

@ -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
}