diff --git a/index/ra/raylib/raylib-2.0.0.toml b/index/ra/raylib/raylib-2.0.0.toml new file mode 100644 index 00000000..83e48a35 --- /dev/null +++ b/index/ra/raylib/raylib-2.0.0.toml @@ -0,0 +1,67 @@ +name = "raylib" +description = "Ada bindings for Raylib" +version = "2.0.0" +long-description = """ +# Using raylib-ada + +This project is available in the [Alire package manager](https://alire.ada.dev). +To use it, just add `raylib` in your dependencies: +```console +$ alr with raylib +``` + +And add the following linker switches for executable projects to link against +Raylib and libmath: +``` + package Linker is + for Switches ("Ada") use ("-lraylib", "-lm"); + end Linker; +``` + +# Raylib dependencies on Ubuntu/Debian + +When Raylib is available in the system distributions (Arch, Fedora, Msys2, +Macports, Brew, etc.), Alire will install it for you so there's nothing to do +here. + +For Ubuntu/Debian on the other hand, you have to download a Raylib release from +GitHub (or build from source if you want). + +Alire will let you know with a message like this: +``` +warn: The following external dependencies are unavailable within Alire: +warn: libraylib^6 +warn: They should be made available in the environment by the user. +``` + +Download the 6.0 release from this address: +``` +$ wget https://github.com/raysan5/raylib/releases/download/6.0/raylib-6.0_linux_amd64.tar.gz +``` + +Extract it: +``` +$ tar xf raylib-6.0_linux_amd64.tar.gz +``` + +Set the environment variables like so: +``` +$ export C_INCLUDE_PATH=${PWD}/raylib-6.0_linux_amd64/include/:${C_INCLUDE_PATH} +$ export LIBRARY_PATH=${PWD}/raylib-6.0_linux_amd64/lib/:${LIBRARY_PATH} +``` +""" + +authors = ["Fabien Chouteau"] +maintainers = ["Fabien Chouteau "] +maintainers-logins = ["Fabien-Chouteau"] +licenses = "MIT OR Apache-2.0 WITH LLVM-exception" +website = "https://github.com/Fabien-Chouteau/raylib-ada" +tags = ["raylib", "gamedev", "binding"] + +[[depends-on]] +gnat = ">=12 & <2000" +libraylib = "~6.0" + +[origin] +commit = "d6a489037ca3d9c3ffe3f73a0a3ce6168ee70297" +url = "git+https://github.com/Fabien-Chouteau/raylib-ada.git"