From 996bba5c57916a91bd862b64cfbcb26b466f740c Mon Sep 17 00:00:00 2001 From: Dimitri John Ledkov Date: Thu, 10 Oct 2024 01:50:29 +0100 Subject: [PATCH] New package libsdl3 Whilst it is pre-release, it has declared to have stable abi https://github.com/libsdl-org/SDL/releases/tag/preview-3.1.3 And we are starting to see cutting edge software releases that require libsdl3. It is likely that libsdl2 will be required for a long time, even when libsdl3 goes stable. Package both during this transition period. Needed for: - https://github.com/wolfi-dev/os/pull/27343 --- libsdl3.yaml | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 libsdl3.yaml diff --git a/libsdl3.yaml b/libsdl3.yaml new file mode 100644 index 0000000000..a93d5dcad0 --- /dev/null +++ b/libsdl3.yaml @@ -0,0 +1,57 @@ +package: + name: libsdl3 + version: 3.1.3 + epoch: 0 + description: Simple DirectMedia Layer is a cross-platform development library designed to provide low level access to audio, keyboard, mouse, joystick, and graphics hardware via OpenGL and Direct3D. + copyright: + - license: Zlib + +environment: + contents: + packages: + - build-base + - busybox + - ca-certificates-bundle + - openssf-compiler-options + +pipeline: + - uses: git-checkout + with: + repository: https://github.com/libsdl-org/SDL + tag: preview-${{package.version}} + expected-commit: e292d1f5ace469f718d7b6b4dec8c28e37dcaa0e + + - uses: cmake/configure + + - uses: cmake/build + + - uses: cmake/install + +subpackages: + - name: ${{package.name}}-dev + dependencies: + runtime: + - libsdl3 + pipeline: + - uses: split/dev + + - name: ${{package.name}}-doc + pipeline: + - uses: split/dev + +update: + enabled: true + github: + identifier: libsdl-org/SDL + strip-prefix: preview- + +test: + environment: + contents: + packages: + - ${{package.name}}-dev + - pkgconf + pipeline: + - runs: | + set -euo pipefail + pkg-config --modversion sdl3 | grep -q "${{package.version}}"