What's the best way to store package info with git?

I’m working on some reproducible build scripts for building packages of libraries and programs. I’d like to share the results on Codeberg. I’m still trying to figure out what makes the most sense as to format to store the information in. I have the input to the build scripts. I have build scripts that I generate for a variety of platforms. I have a copy of the original source tarball. The build scripts create a tmp directory where I can see the source code with any applied patches (patches are part of the build scripts) and I have the final tarballs with the packaged libraries/programs for particular targets. What would make the most sense to add to Codeberg? Would I just want to store the input to generate the build scripts or would I also want the generated build scripts for various platforms? Would I want to include the original source tarball in case the site with the original source is no longer available at some point? Is it sufficient to have the source code in a tarball or do I want people to be able to view the source code plus patches individually from the tmp directory? Would I want to include the packages that were built by the scripts so someone doesn’t have to build it all themselves? What makes the most sense when using git to store a build system project? Would appreciate ideas or examples. Thanks.

2 Likes

Git sites seem to be self contained. I would put everything on a git repo. People using it need information. You dont mention documentation, but I am sure you have it.

I dont think Codeberg has any policy that would counter the above. Github has a limit on filesize, but nothing else that I am aware of.

1 Like

Git is not meant for storage of binaries. If you start versioning binaries, some sites will become quite unhappy with you.

1 Like

Meanwhile, they are talking about quotas. I cannot recommend putting everything there. Use Codeberg for the scripts and docs, but an FTP host for everything else (sources, binaries).

2 Likes

Right. They seem to be OK with pdf files as lomg as the corresponding .tex files are there

1 Like

While this is very true, of course, I store some of my binaries as generic packages on Codeberg. These packages are not under Git control.

1 Like

Is codeberg also a ftp server, or something like that?

1 Like

Not that I’m aware of. The packages I mentioned above are maintained with curl.

2 Likes