From 3103577bedcd6e91ab19468cd93d93b089b6894b Mon Sep 17 00:00:00 2001 From: Andrew <51118083+ArionThinker@users.noreply.github.com> Date: Wed, 28 Jun 2023 22:39:11 +0300 Subject: [PATCH] git-lfs.github.com (#2281) * Create package.yml * Update package.yml * rename guthub to github * Update package.yml * deps * Update package.yml * deps * Update package.yml * Update package.yml * modified: projects/git-lfs.github.com/package.yml * modified: projects/git-lfs.github.com/package.yml * modified: projects/git-lfs.github.com/package.yml * DOWNLOAD_URL & DOWNLOAD_FILE * modified: projects/git-lfs.github.com/package.yml * modified: projects/git-lfs.github.com/package.yml * modified: projects/git-lfs.github.com/package.yml * env VERSION remove * modified: projects/git-lfs.github.com/package.yml * rename to git-lfs.com * add comment about building from source --------- Co-authored-by: Jacob Heider --- projects/git-lfs.com/package.yml | 49 ++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 projects/git-lfs.com/package.yml diff --git a/projects/git-lfs.com/package.yml b/projects/git-lfs.com/package.yml new file mode 100644 index 00000000..f5cab7ad --- /dev/null +++ b/projects/git-lfs.com/package.yml @@ -0,0 +1,49 @@ +distributable: + url: https://github.com/git-lfs/git-lfs/releases/download/v{{version}}/git-lfs-v{{version}}.tar.gz + strip-components: 1 + +warnings: + - vendored + +versions: + github: git-lfs/git-lfs + +dependencies: + git-scm.org: '*' + +build: + dependencies: + gnu.org/wget: '*' + + script: + # FIXME: Building from source: https://github.com/git-lfs/git-lfs#from-source + # results in error: git-lfs died on signal 11 + - wget $DOWNLOAD_URL + - $UNARCHIVE + - cd git-lfs-{{version}} + - mkdir -p {{prefix}}/bin + - install ./git-lfs {{prefix}}/bin/git-lfs + - mkdir -p {{prefix}}/man + - mv ./man/* {{prefix}}/man/ + + env: + linux/x86-64: + DOWNLOAD_URL: https://github.com/git-lfs/git-lfs/releases/download/v{{version}}/git-lfs-linux-amd64-v{{version}}.tar.gz + UNARCHIVE: tar -xz -f git-lfs-linux-amd64-v{{version}}.tar.gz + linux/aarch64: + DOWNLOAD_URL: https://github.com/git-lfs/git-lfs/releases/download/v{{version}}/git-lfs-linux-arm64-v{{version}}.tar.gz + UNARCHIVE: tar -xz -f git-lfs-linux-arm64-v{{version}}.tar.gz + darwin/x86-64: + DOWNLOAD_URL: https://github.com/git-lfs/git-lfs/releases/download/v{{version}}/git-lfs-darwin-amd64-v{{version}}.zip + UNARCHIVE: unzip git-lfs-darwin-amd64-v{{version}}.zip -d ./ + darwin/aarch64: + DOWNLOAD_URL: https://github.com/git-lfs/git-lfs/releases/download/v{{version}}/git-lfs-darwin-arm64-v{{version}}.zip + UNARCHIVE: unzip git-lfs-darwin-arm64-v{{version}}.zip -d ./ + +provides: + - bin/git-lfs + +test: + - git init + - git lfs track test + - grep 'test filter=lfs' .gitattributes