diff --git a/projects/github.com/ggerganov/llama.cpp/package.yml b/projects/github.com/ggerganov/llama.cpp/package.yml index 53016050..0e61eb73 100644 --- a/projects/github.com/ggerganov/llama.cpp/package.yml +++ b/projects/github.com/ggerganov/llama.cpp/package.yml @@ -52,7 +52,14 @@ build: exit 1 fi install -D props/entrypoint.sh {{prefix}}/entrypoint.sh - install -D ggml-metal.metal {{prefix}}/bin/ggml-metal.metal + if test -f ggml-metal.metal; then + install -D ggml-metal.metal {{prefix}}/bin/ggml-metal.metal + elif test -f ggml/src/ggml-metal.metal; then + install -D ggml/src/ggml-metal.metal {{prefix}}/bin/ggml-metal.metal + else + echo "No ggml-metal.metal found" + exit 1 + fi - | mkdir -p {{prefix}}/share