Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add in base for Git Package #66

Merged
merged 3 commits into from
Jul 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion packages/curl/project.bri
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const source = std
.peel();

export default (): std.Recipe<std.Directory> => {
const curl = std.runBash`
let curl = std.runBash`
./configure \\
--prefix=/ \\
--with-openssl \\
Expand All @@ -31,5 +31,11 @@ export default (): std.Recipe<std.Directory> => {
.dependencies(std.toolchain(), openssl())
.toDirectory();

curl = std.setEnv(curl, {
CPATH: { path: "include" },
LIBRARY_PATH: { path: "lib" },
PKG_CONFIG_PATH: { path: "lib/pkgconfig" },
});

return std.withRunnableLink(curl, "bin/curl");
};
3 changes: 3 additions & 0 deletions packages/git/brioche.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 30 additions & 0 deletions packages/git/project.bri
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import * as std from "std";
import openssl from "openssl";
import curl from "curl";

export const project = {
name: "git",
version: "2.45.2",
};

const source = std
.download({
url: `https://github.com/git/git/archive/refs/tags/v${project.version}.tar.gz`,
hash: std.sha256Hash(
"8422abc4a16e389220d8da15e12d712f4e6219846ddd8b112e9b31f3087ddf9b",
),
})
.unarchive("tar", "gzip")
.peel();

export default (): std.Recipe<std.Directory> => {
const git = std.runBash`
make prefix=/ all
make prefix=/ install DESTDIR="$BRIOCHE_OUTPUT"
`
.workDir(source)
.dependencies(std.toolchain(), openssl(), curl())
.toDirectory();

return std.withRunnableLink(git, "bin/git");
};