2019-05-11 17:27:56 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://git-lfs.github.com/
|
|
|
|
TERMUX_PKG_DESCRIPTION="Git extension for versioning large files"
|
|
|
|
TERMUX_PKG_LICENSE="MIT"
|
2019-05-16 18:54:59 +02:00
|
|
|
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com>"
|
2019-07-24 13:25:59 +02:00
|
|
|
TERMUX_PKG_VERSION=2.8.0
|
2019-09-03 23:08:41 +02:00
|
|
|
TERMUX_PKG_REVISION=1
|
2019-05-11 17:27:56 +02:00
|
|
|
TERMUX_PKG_SRCURL=https://github.com/git-lfs/git-lfs/archive/v$TERMUX_PKG_VERSION.tar.gz
|
2019-07-24 13:25:59 +02:00
|
|
|
TERMUX_PKG_SHA256=10b476bb8862ebceddc6f0a55f5fb63e2c1e5bed6554f6e3b207dd0155a196ad
|
2019-05-11 17:27:56 +02:00
|
|
|
|
|
|
|
termux_step_make() {
|
2019-09-03 23:08:41 +02:00
|
|
|
echo 'replace github.com/git-lfs/go-ntlm v0.0.0-20190307203151-c5056e7fa066 => github.com/git-lfs/go-ntlm c5056e7fa066' >> $TERMUX_PKG_SRCDIR/go.mod
|
|
|
|
|
2019-05-11 17:27:56 +02:00
|
|
|
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
|
2019-08-13 12:26:50 +02:00
|
|
|
! $TERMUX_ON_DEVICE_BUILD && GOOS=linux GOARCH=amd64 CC=gcc LD=gcc go generate github.com/git-lfs/git-lfs/commands
|
2019-05-11 17:27:56 +02:00
|
|
|
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
|
|
|
|
}
|