[Slackbuilds-users] Using a Git repo as the source
Shahab Vahedi
list+sbo at vahedi.org
Sat Jun 8 14:57:02 UTC 2024
Hello list,
TL;DR;
What is the norm about grabbing source through Git?
I want to prepare a package called "creduce" [1] for SlackBuilds.org.
The thing about "creduce" is that some internal code of it, clang_delta,
needs to be compiled with LLVM (headers), while the rest of the code can
be built with g++.
Using LLVM 13.0, as it exists in Slackware-15.0, leads to errors. The
project team is aware of this [2] and a specific "llvm-13.0" branch [3]
is provided to address that.
So what I need to populate the source is something along these lines:
$ git clone --single-branch --branch llvm-13.0 --depth 1 \
https://github.com/csmith-project/creduce.git
I am wondering what's the best approach, from SlackBuilds scripts point
of view, to tackle this? I have found some "git2tar{xz,gz}.sh" scripts
for some packages. Could anyone give me a recent example of this or any
other hints?
Thank you,
Shahab
[1]
https://github.com/csmith-project/creduce
[2]
https://github.com/csmith-project/creduce/issues/239#issuecomment-1014235777
[3]
https://github.com/csmith-project/creduce/tree/llvm-13.0
More information about the SlackBuilds-users
mailing list