Merge branch '255-git-lfs-module' into 'master'

Resolve "git-lfs module"

Closes #255

See merge request Pmodules/buildblocks!378
This commit is contained in:
2023-01-27 14:45:40 +00:00
3 changed files with 38 additions and 0 deletions

24
Tools/git-lfs/build Executable file
View File

@@ -0,0 +1,24 @@
#!/usr/bin/env modbuild
pbuild::set_download_url \
"https://github.com/git-lfs/git-lfs/archive/refs/tags/v3.2.0.tar.gz" \
"git-lfs-3.2.0.tar.gz"
pbuild::compile_in_sourcetree
#pbuild::install_docfiles 'COPYING' 'README.md'
pbuild::add_to_group 'Tools'
unset -f pbuild::configure
pbuild::install() {
install -m 0755 -d "${PREFIX}/bin"
install -m 0755 ./bin/git-lfs "${PREFIX}/bin"
install -m 0755 -d "${PREFIX}/.lib64"
install -m 0755 "${GCC_PREFIX}/lib64/libgo.so.21.0.0" "${PREFIX}/.lib64/libgo.so.21"
patchelf --force-rpath --set-rpath '$ORIGIN/../.lib64' "${PREFIX}/bin/git-lfs"
}
# Local Variables:
# mode: sh
# sh-basic-offset: 8
# tab-width: 8
# End:

View File

@@ -0,0 +1 @@
git-lfs/3.3.0 stable b:gcc/12.1.0 b:patchelf/0.14.5

13
Tools/git-lfs/modulefile Normal file
View File

@@ -0,0 +1,13 @@
#%Module1.0
module-whatis "large file support for Git"
module-url "https://git-lfs.com"
module-license "MIT"
module-maintainer "Achim Gsell <achim.gsell@psi.ch>"
module-help "
Git Large File Storage (LFS) replaces large files such as audio samples,
videos, datasets, and graphics with text pointers inside Git, while
storing the file contents on a remote server like GitHub.com or GitHub
Enterprise.
"