From 544430a64c904ff52dc85b4ca5dfcefb5546bb7d Mon Sep 17 00:00:00 2001 From: Ribbon Date: Sun, 1 Feb 2026 17:19:03 -0300 Subject: [PATCH] Add, fix and improve many recipes --- recipes/wip/dev/lang/artichoke/recipe.toml | 1 + recipes/wip/dev/lang/brimstone/recipe.toml | 1 + recipes/wip/dev/lang/cjit/recipe.toml | 5 +++-- recipes/wip/dev/lang/elixir/recipe.toml | 5 +++-- recipes/wip/dev/lang/elm/recipe.toml | 3 ++- recipes/wip/dev/lang/erlang/recipe.toml | 8 +++++--- recipes/wip/dev/lang/ghc/recipe.toml | 4 ++-- recipes/wip/dev/lang/kotlin/recipe.toml | 13 +++++++++++++ recipes/wip/games/math/tuxmath/recipe.toml | 10 ++++++++-- recipes/wip/games/racing/supertuxkart/recipe.toml | 3 ++- recipes/wip/games/rts/mindustry-beta/recipe.toml | 11 +++++++++++ recipes/wip/games/rts/mindustry/recipe.toml | 13 ++++++------- .../wip/net/bittorrent/webtorrent-cli/recipe.toml | 8 ++++---- recipes/wip/search/fzf/recipe.toml | 8 ++++++++ recipes/wip/video/other/jerry/recipe.toml | 3 ++- 15 files changed, 71 insertions(+), 25 deletions(-) create mode 100644 recipes/wip/dev/lang/kotlin/recipe.toml create mode 100644 recipes/wip/games/rts/mindustry-beta/recipe.toml create mode 100644 recipes/wip/search/fzf/recipe.toml diff --git a/recipes/wip/dev/lang/artichoke/recipe.toml b/recipes/wip/dev/lang/artichoke/recipe.toml index 0bf2fc0c..7619a04e 100644 --- a/recipes/wip/dev/lang/artichoke/recipe.toml +++ b/recipes/wip/dev/lang/artichoke/recipe.toml @@ -1,5 +1,6 @@ #TODO iana-time-zone crate error [source] git = "https://github.com/artichoke/artichoke" +shallow_clone = true [build] template = "cargo" diff --git a/recipes/wip/dev/lang/brimstone/recipe.toml b/recipes/wip/dev/lang/brimstone/recipe.toml index 4a1ab8da..cbee54c1 100644 --- a/recipes/wip/dev/lang/brimstone/recipe.toml +++ b/recipes/wip/dev/lang/brimstone/recipe.toml @@ -1,5 +1,6 @@ #TODO not compiled or tested [source] git = "https://github.com/Hans-Halverson/brimstone" +shallow_clone = true [build] template = "cargo" diff --git a/recipes/wip/dev/lang/cjit/recipe.toml b/recipes/wip/dev/lang/cjit/recipe.toml index 7c3020f1..a21c67df 100644 --- a/recipes/wip/dev/lang/cjit/recipe.toml +++ b/recipes/wip/dev/lang/cjit/recipe.toml @@ -1,6 +1,7 @@ -#TODO write a gnu make target for redox, see: https://github.com/dyne/cjit#build-from-source +#TODO write a gnu make target for redox: https://github.com/dyne/cjit#build-from-source [source] git = "https://github.com/dyne/cjit" -rev = "9a4321e64ea1af10e9e3c63de45af80b36846cda" +rev = "v0.18.2" +shallow_clone = true [build] template = "custom" diff --git a/recipes/wip/dev/lang/elixir/recipe.toml b/recipes/wip/dev/lang/elixir/recipe.toml index 33906690..2bcb83d3 100644 --- a/recipes/wip/dev/lang/elixir/recipe.toml +++ b/recipes/wip/dev/lang/elixir/recipe.toml @@ -1,6 +1,7 @@ -#TODO missing script for "make", see https://github.com/elixir-lang/elixir#compiling-from-source +#TODO missing script for gnu make: https://github.com/elixir-lang/elixir#compiling-from-source [source] git = "https://github.com/elixir-lang/elixir" -rev = "927b10df80ee1c1c7396e68efe00d06bc3e80420" +branch = "v1.19" +shallow_clone = true [build] template = "custom" diff --git a/recipes/wip/dev/lang/elm/recipe.toml b/recipes/wip/dev/lang/elm/recipe.toml index b379c2b6..343c1826 100644 --- a/recipes/wip/dev/lang/elm/recipe.toml +++ b/recipes/wip/dev/lang/elm/recipe.toml @@ -1,6 +1,7 @@ #TODO missing script for building, lacking build instructions [source] git = "https://github.com/elm/compiler" -rev = "c9aefb6230f5e0bda03205ab0499f6e4af924495" +rev = "0.19.1" +shallow_clone = true [build] template = "custom" diff --git a/recipes/wip/dev/lang/erlang/recipe.toml b/recipes/wip/dev/lang/erlang/recipe.toml index 02c55a5d..d6aab8b6 100644 --- a/recipes/wip/dev/lang/erlang/recipe.toml +++ b/recipes/wip/dev/lang/erlang/recipe.toml @@ -1,12 +1,14 @@ -#TODO probably wrong script, see https://www.erlang.org/doc/installation_guide/install +#TODO discover current status +# build instructions: https://www.erlang.org/doc/installation_guide/install [source] -tar = "https://github.com/erlang/otp/releases/download/OTP-26.1.1/otp_src_26.1.1.tar.gz" +tar = "https://github.com/erlang/otp/releases/download/OTP-28.3.1/otp_src_28.3.1.tar.gz" [build] template = "custom" dependencies = [ - "openssl1", + "openssl3", ] script = """ +DYNAMIC_INIT export ERL_TOP="${COOKBOOK_SOURCE}" COOKBOOK_CONFIGURE_FLAGS+=( --without-termcap diff --git a/recipes/wip/dev/lang/ghc/recipe.toml b/recipes/wip/dev/lang/ghc/recipe.toml index 9ab877b5..6a3824b1 100644 --- a/recipes/wip/dev/lang/ghc/recipe.toml +++ b/recipes/wip/dev/lang/ghc/recipe.toml @@ -1,5 +1,5 @@ -#TODO missing script for Hadrian, see https://gitlab.haskell.org/ghc/ghc/-/wikis/building/hadrian +#TODO missing script for hadrian: https://gitlab.haskell.org/ghc/ghc/-/wikis/building/hadrian [source] -tar = "https://downloads.haskell.org/~ghc/9.8.1/ghc-9.8.1-src.tar.xz" +tar = "https://downloads.haskell.org/~ghc/9.14.1/ghc-9.14.1-src.tar.xz" [build] template = "custom" diff --git a/recipes/wip/dev/lang/kotlin/recipe.toml b/recipes/wip/dev/lang/kotlin/recipe.toml new file mode 100644 index 00000000..e8e99169 --- /dev/null +++ b/recipes/wip/dev/lang/kotlin/recipe.toml @@ -0,0 +1,13 @@ +#TODO not tested yet +[build] +template = "custom" +script = """ +mkdir -pv "${COOKBOOK_STAGE}/usr/bin/kotlin-dir" +wget https://github.com/JetBrains/kotlin/releases/download/v2.3.0/kotlin-compiler-2.3.0.zip +unzip kotlin-compiler-2.3.0.zip -d "${COOKBOOK_BUILD}" +mv "${COOKBOOK_BUILD}/kotlin/*" "${COOKBOOK_STAGE}/usr/bin/kotlin-dir" +echo "/usr/bin/kotlin-dir/bin/kotlinc" > "${COOKBOOK_STAGE}"/usr/bin/kotlinc +chmod a+x "${COOKBOOK_STAGE}"/usr/bin/kotlinc +""" +[package] +dependencies = ["openjdk21"] diff --git a/recipes/wip/games/math/tuxmath/recipe.toml b/recipes/wip/games/math/tuxmath/recipe.toml index 17b23126..e67e1873 100644 --- a/recipes/wip/games/math/tuxmath/recipe.toml +++ b/recipes/wip/games/math/tuxmath/recipe.toml @@ -1,8 +1,14 @@ -#TODO missing script for building, see https://github.com/tux4kids/tuxmath/blob/master/doc/INSTALL +#TODO not compiled or tested +# build instructions: https://github.com/tux4kids/tuxmath/blob/master/doc/INSTALL [source] git = "https://github.com/tux4kids/tuxmath" +shallow_clone = true +script = """ +DYNAMIC_INIT +autotools_recursive_regenerate +""" [build] -template = "custom" +template = "configure" dependencies = [ "t4kcommon", "sdl1", diff --git a/recipes/wip/games/racing/supertuxkart/recipe.toml b/recipes/wip/games/racing/supertuxkart/recipe.toml index 5ee6ff3c..d136a5e5 100644 --- a/recipes/wip/games/racing/supertuxkart/recipe.toml +++ b/recipes/wip/games/racing/supertuxkart/recipe.toml @@ -2,6 +2,7 @@ # build instructions: https://github.com/supertuxkart/stk-code/blob/master/INSTALL.md#compiling [source] tar = "https://github.com/supertuxkart/stk-code/releases/download/1.5/SuperTuxKart-1.5-src.tar.gz" +patches = ["redox.patch"] [build] template = "cmake" cmakeflags = [ @@ -18,7 +19,7 @@ dependencies = [ "freetype2", "harfbuzz", "curl", - "openssl1", + "openssl3", "libpng", "zlib", "libjpeg", diff --git a/recipes/wip/games/rts/mindustry-beta/recipe.toml b/recipes/wip/games/rts/mindustry-beta/recipe.toml new file mode 100644 index 00000000..1a54756e --- /dev/null +++ b/recipes/wip/games/rts/mindustry-beta/recipe.toml @@ -0,0 +1,11 @@ +#TODO waiting openjdk x11 feature creation +[build] +template = "custom" +script = """ +mkdir -pv "${COOKBOOK_STAGE}/usr/bin" +wget https://github.com/Anuken/Mindustry/releases/download/v154.3/Mindustry.jar "${COOKBOOK_STAGE}/usr/bin" +echo "#!/usr/bin/env sh \n java -jar /usr/bin/Mindustry.jar" > "${COOKBOOK_STAGE}"/usr/bin/mindustry +chmod a+x "${COOKBOOK_STAGE}"/usr/bin/mindustry +""" +[package] +dependencies = ["openjdk17.x11"] diff --git a/recipes/wip/games/rts/mindustry/recipe.toml b/recipes/wip/games/rts/mindustry/recipe.toml index aaf90c74..ea7dc882 100644 --- a/recipes/wip/games/rts/mindustry/recipe.toml +++ b/recipes/wip/games/rts/mindustry/recipe.toml @@ -1,12 +1,11 @@ -#TODO make openjdk work +#TODO waiting openjdk x11 feature creation [build] template = "custom" script = """ -mkdir -pv "${COOKBOOK_SOURCE}" -wget https://github.com/Anuken/Mindustry/releases/download/v146/Mindustry.jar -mkdir -pv "${COOKBOOK_STAGE}"/usr/share/mindustry -mkdir -pv "${COOKBOOK_STAGE}"/usr/bin -cp -rv "${COOKBOOK_SOURCE}"/Mindustry.jar "${COOKBOOK_STAGE}"/usr/share/mindustry -echo "#!/usr/bin/env sh \n java -jar /usr/share/mindustry/Mindustry.jar" > "${COOKBOOK_STAGE}"/usr/bin/mindustry +mkdir -pv "${COOKBOOK_STAGE}/usr/bin" +wget https://github.com/Anuken/Mindustry/releases/download/v146/Mindustry.jar "${COOKBOOK_STAGE}/usr/bin" +echo "#!/usr/bin/env sh \n java -jar /usr/bin/Mindustry.jar" > "${COOKBOOK_STAGE}"/usr/bin/mindustry chmod a+x "${COOKBOOK_STAGE}"/usr/bin/mindustry """ +[package] +dependencies = ["openjdk17.x11"] diff --git a/recipes/wip/net/bittorrent/webtorrent-cli/recipe.toml b/recipes/wip/net/bittorrent/webtorrent-cli/recipe.toml index 55e07678..b8b513e3 100644 --- a/recipes/wip/net/bittorrent/webtorrent-cli/recipe.toml +++ b/recipes/wip/net/bittorrent/webtorrent-cli/recipe.toml @@ -6,10 +6,10 @@ shallow_clone = true [build] template = "custom" script = """ -mkdir -pv "${COOKBOOK_STAGE}"/usr/bin/webtorrent-cli-dir -cp -rv "${COOKBOOK_SOURCE}"/* "${COOKBOOK_STAGE}"/usr/bin/webtorrent-cli-dir -echo "#!/usr/bin/env sh \n cd /usr/bin/webtorrent-cli-dir/webtorrent-cli \n npx webtorrent-cli" > "${COOKBOOK_STAGE}"/usr/bin/webtorrent-cli -chmod a+x "${COOKBOOK_STAGE}"/usr/bin/webtorrent-cli +mkdir -pv "${COOKBOOK_STAGE}"/usr/bin/webtorrent-dir +cp -rv "${COOKBOOK_SOURCE}"/* "${COOKBOOK_STAGE}"/usr/bin/webtorrent-dir +echo "#!/usr/bin/env sh \n cd /usr/bin/webtorrent-dir \n npx webtorrent-cli" > "${COOKBOOK_STAGE}"/usr/bin/webtorrent +chmod a+x "${COOKBOOK_STAGE}"/usr/bin/webtorrent """ [package] dependencies = ["nodejs24"] diff --git a/recipes/wip/search/fzf/recipe.toml b/recipes/wip/search/fzf/recipe.toml new file mode 100644 index 00000000..9340f1f1 --- /dev/null +++ b/recipes/wip/search/fzf/recipe.toml @@ -0,0 +1,8 @@ +#TODO missing script for gnu make: https://github.com/junegunn/fzf/blob/master/BUILD.md +[source] +git = "https://github.com/junegunn/fzf" +rev = "v0.67.0" +shallow_clone = true +[build] +template = "custom" +dev-dependencies = ["host:go"] diff --git a/recipes/wip/video/other/jerry/recipe.toml b/recipes/wip/video/other/jerry/recipe.toml index d5c65c75..df199fc5 100644 --- a/recipes/wip/video/other/jerry/recipe.toml +++ b/recipes/wip/video/other/jerry/recipe.toml @@ -1,6 +1,7 @@ -#TODO missing fzf dependency: https://github.com/junegunn/fzf +#TODO fix fzf dependency [source] git = "https://github.com/justchokingaround/jerry" +shallow_clone = true [build] template = "custom" script = """