git-lfs: support for on-device builds

This commit is contained in:
Leonid Pliushch 2019-08-13 13:26:50 +03:00
parent 536e9dec56
commit b571340e5b

View File

@ -14,7 +14,7 @@ termux_step_make() {
ln -sf "$TERMUX_PKG_SRCDIR" "$GOPATH"/github.com/git-lfs/git-lfs
cd "$GOPATH"/github.com/git-lfs/git-lfs
GOOS=linux GOARCH=amd64 CC=gcc LD=gcc go generate github.com/git-lfs/git-lfs/commands
! $TERMUX_ON_DEVICE_BUILD && GOOS=linux GOARCH=amd64 CC=gcc LD=gcc go generate github.com/git-lfs/git-lfs/commands
go build git-lfs.go
}