From 7235be0c913a6676aace951aab54885a7c970b54 Mon Sep 17 00:00:00 2001 From: EnumDev Date: Thu, 17 Jul 2025 13:36:41 +0300 Subject: [PATCH] Update package version to 3.2.18 --- check-version.sh | 15 +++++++++++++++ pkg.info | 6 +++--- 2 files changed, 18 insertions(+), 3 deletions(-) create mode 100644 check-version.sh diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..45f6db6 --- /dev/null +++ b/check-version.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +# Github repository +REPO="libsdl-org/SDL" + +# Get tag name using Github Rest API +TAG_NAME=$(curl -s -L -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" https://api.github.com/repos/"$REPO"/releases/latest | jq -r '.tag_name') + +# Get version number from tag name +VERSION=$(echo "$TAG_NAME" | rev | cut -d'-' -f1 | rev) + +# Trim 'v' character in VERSION variable +VERSION=$(echo "$VERSION" | tr -d 'v') + +echo "$VERSION" diff --git a/pkg.info b/pkg.info index 4926f1d..8635229 100644 --- a/pkg.info +++ b/pkg.info @@ -1,10 +1,10 @@ name: sdl3 description: Cross-platform development library providing low level access to audio, keyboard, mouse, joystick and graphics hardware -version: 3.2.16 +version: 3.2.18 url: https://www.libsdl.org/ license: zlib architecture: any depends: ["glibc","libglvnd","libx11","libxcursor","libxext","libxrender"] -optional_depends: ["alsa-lib","libdecor","pipewire","pulseaudio","sndio","vulkan-loader"] -make_depends: ["alsa-lib","cmake","libdecor","libxinerama","libxkbcommon","libxrandr","mesa","ninja","pipewire","sndio","vulkan-headers","wayland","wayland-protocols"] +optional_depends: ["alsa-lib","libdecor","pipewire","libpulse","sndio","vulkan-loader"] +make_depends: ["alsa-lib","cmake","libdecor","libxinerama","libxkbcommon","libxrandr","mesa","ninja","libpulse","sndio","vulkan-headers","wayland","wayland-protocols"] type: source