Skip to content

Commit

Permalink
New package libsdl3
Browse files Browse the repository at this point in the history
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:
- #27343
  • Loading branch information
xnox committed Oct 10, 2024
1 parent 7451e84 commit 996bba5
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions libsdl3.yaml
Original file line number Diff line number Diff line change
@@ -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}}"

0 comments on commit 996bba5

Please sign in to comment.