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"
|
2020-12-20 14:16:34 +01:00
|
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
2022-04-20 02:22:38 +02:00
|
|
|
TERMUX_PKG_VERSION="3.1.4"
|
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
|
2022-04-20 02:22:38 +02:00
|
|
|
TERMUX_PKG_SHA256=d7bfeb6f4c219c44773da4f93da28eb1e2e654efa4cd23294d9039247d8cde64
|
2021-10-04 12:43:31 +02:00
|
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
2019-05-11 17:27:56 +02:00
|
|
|
|
|
|
|
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
|
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() {
|
2020-09-02 18:24:40 +02:00
|
|
|
# Remove read-only files generated in build process.
|
2019-05-11 17:27:56 +02:00
|
|
|
chmod -R 700 "$TERMUX_PKG_BUILDDIR"/pkg
|
|
|
|
rm -rf "$TERMUX_PKG_BUILDDIR"/pkg
|
|
|
|
}
|