termux-packages/packages/git-lfs/build.sh
Butta 7fbe036274 direnv: update from 2.21.3 to 2.22.0
git-lfs: update from 2.11.0 to 2.12.0

jfrog-cli: update from 1.39.1 to 1.39.2
2020-09-02 21:15:10 +05:30

31 lines
1001 B
Bash

TERMUX_PKG_HOMEPAGE=https://git-lfs.github.com/
TERMUX_PKG_DESCRIPTION="Git extension for versioning large files"
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_VERSION=2.12.0
TERMUX_PKG_SRCURL=https://github.com/git-lfs/git-lfs/archive/v$TERMUX_PKG_VERSION.tar.gz
TERMUX_PKG_SHA256=9971d91cd2b0dd34ccda41a3db97504bfdb4fbc23cc2ee4b6e3b9afea5643941
termux_step_make() {
termux_setup_golang
export GOPATH=$TERMUX_PKG_BUILDDIR
mkdir -p "$GOPATH"/github.com/git-lfs
ln -sf "$TERMUX_PKG_SRCDIR" "$GOPATH"/github.com/git-lfs/git-lfs
cd "$GOPATH"/github.com/git-lfs/git-lfs
! $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
}
termux_step_make_install() {
install -Dm700 \
"$GOPATH"/github.com/git-lfs/git-lfs/git-lfs \
"$TERMUX_PREFIX"/bin/git-lfs
}
termux_step_post_make_install() {
## Remove read-only files generated in build process.
chmod -R 700 "$TERMUX_PKG_BUILDDIR"/pkg
rm -rf "$TERMUX_PKG_BUILDDIR"/pkg
}