From b4ff0e8766fc252f299e1558a00dbdeea4b120d0 Mon Sep 17 00:00:00 2001 From: Jeremy Soller <jackpot51@gmail.com> Date: Wed, 20 Sep 2023 10:07:10 -0600 Subject: [PATCH] bzip2: add recipe --- recipes/bzip2/recipe.toml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 recipes/bzip2/recipe.toml diff --git a/recipes/bzip2/recipe.toml b/recipes/bzip2/recipe.toml new file mode 100644 index 000000000..3b7bf86aa --- /dev/null +++ b/recipes/bzip2/recipe.toml @@ -0,0 +1,21 @@ +[source] +tar = "https://sourceware.org/pub/bzip2/bzip2-1.0.8.tar.gz" +blake3 = "97af3f520629c65fe41292f77e6ca798fe594d7987bfb2aebe7c6fcdc7ab5ed2" + +[build] +template = "custom" +script = """ +rsync -av --delete "${COOKBOOK_SOURCE}/" ./ +"${COOKBOOK_MAKE}" -j"${COOKBOOK_MAKE_JOBS}" \ + AR="${TARGET}-ar" \ + CC="${TARGET}-gcc" \ + LDFLAGS="-static" \ + PREFIX=/ \ + RANLIB="${TARGET}-ranlib" \ + libbz2.a \ + bzip2 +mkdir -pv "${COOKBOOK_STAGE}/bin" +cp -v bzip2 "${COOKBOOK_STAGE}/bin" +mkdir -pv "${COOKBOOK_STAGE}/lib" +cp -v libbz2.a "${COOKBOOK_STAGE}/lib" +""" -- GitLab