From 7645c9150b7e8f2f8dbe0a7b0bcdd38918ce88f0 Mon Sep 17 00:00:00 2001 From: EnumDev Date: Fri, 19 Sep 2025 13:55:33 +0300 Subject: [PATCH] Rebuild with hidapi --- pkg.info | 3 ++- source.sh | 16 ++++++---------- 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/pkg.info b/pkg.info index 35c240c..4888af6 100644 --- a/pkg.info +++ b/pkg.info @@ -1,10 +1,11 @@ name: sdl3 description: Cross-platform development library providing low level access to audio, keyboard, mouse, joystick and graphics hardware version: 3.2.22 +revision: 2 url: https://www.libsdl.org/ license: zlib architecture: any -depends: ["glibc","libglvnd","libx11","libxcursor","libxext","libxrender"] +depends: ["glibc","hidapi","libglvnd","libx11","libxcursor","libxext","libxrender"] 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 diff --git a/source.sh b/source.sh index 692df4d..1e4e611 100644 --- a/source.sh +++ b/source.sh @@ -15,25 +15,21 @@ prepare() { # The build function is executed in the source directory # This function is used to compile the source code build() { - mkdir build - cd build - - cmake -DCMAKE_INSTALL_PREFIX=/usr \ + cmake -B build \ + -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Release \ -DSDL_TEST_LIBRARY=OFF \ -DSDL_STATIC=OFF \ -DSDL_RPATH=OFF \ - -Wno-dev \ - -G Ninja .. - ninja + -Wno-dev + cmake --build build } # The package function is executed in the source directory # This function is used to move the compiled files into the output directory package() { - cd build - - DESTDIR="$BPM_OUTPUT" ninja install + DESTDIR="$BPM_OUTPUT" cmake --install build + # Install package license install -Dm644 "$BPM_SOURCE"/LICENSE.txt "$BPM_OUTPUT"/usr/share/licenses/sdl2/LICENSE.txt }