lf: Cache Golang dependencies

This commit is contained in:
Yaksh Bariya 2021-07-05 19:04:55 +05:30
parent 9980c8bce6
commit a6ebde004c
No known key found for this signature in database
GPG Key ID: F7486BA7D3D27581

View File

@ -13,6 +13,7 @@ termux_step_make() {
mkdir -p "$GOPATH/src/github.com/gokcehan"
ln -sf "$TERMUX_PKG_SRCDIR" "$GOPATH/src/github.com/gokcehan/lf"
cd "$GOPATH/src/github.com/gokcehan/lf"
termux_go_get -d -v
go build -ldflags="-X main.gVersion=r$TERMUX_PKG_VERSION" -trimpath
}