Skip to content

Instantly share code, notes, and snippets.

@ericevenchick
Last active November 17, 2022 17:49
Show Gist options
  • Save ericevenchick/31bf340e0a4bb278c82dbce1dd8350d0 to your computer and use it in GitHub Desktop.
Save ericevenchick/31bf340e0a4bb278c82dbce1dd8350d0 to your computer and use it in GitHub Desktop.
load("../lib.star", "plot")
load("../lib.star", "gnu_build_step")
load("../lib.star", "zapp_pack_step")
step_build = gnu_build_step(
src=("warpsys.org/bash", "v5.1.16", "src"),
script="""cd /src/*
./configure --prefix=/warpsys-placeholder-prefix
make
make DESTDIR=/out install""")
step_pack = zapp_pack_step(
binaries=["bash"],
libraries=[
("warpsys.org/bootstrap/glibc", "libc.so.6"),
("warpsys.org/bootstrap/glibc", "libdl.so.2"),
("warpsys.org/bootstrap/glibc", "libm.so.6"),
],
extra_script="rm -rf /pack/lib/bash /pack/lib/pkgconfig /pack/include /pack/share")
result = plot(steps={"build": step_build, "pack": step_pack})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment