Skip to content

Instantly share code, notes, and snippets.

@mkohlhaas
Created October 20, 2023 00:34

Revisions

  1. mkohlhaas created this gist Oct 20, 2023.
    5 changes: 5 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    # https://gitlab.archlinux.org/archlinux/packaging/packages/raylib/-/blob/main/PKGBUILD
    git clone https://github.com/raysan5/raylib.git
    cmake -B build -D BUILD_EXAMPLES=OFF -D BUILD_SHARED_LIBS=ON -D CMAKE_BUILD_TYPE=Release -D CMAKE_C_FLAGS="$CFLAGS -fPIC -w" -D CMAKE_INSTALL_LIBDIR=lib -D CMAKE_INSTALL_PREFIX=/usr -D OpenGL_GL_PREFERENCE=GLVND -D PLATFORM=Desktop -D USE_EXTERNAL_GLFW=OFF -D WITH_PIC=ON -G Ninja -S raylib -W no-dev
    ninja -C build
    sudo ninja -C build install