From b84eee5daa6f5a0d05007072318f6af190408449 Mon Sep 17 00:00:00 2001 From: EnumDev Date: Fri, 10 Oct 2025 18:17:36 +0300 Subject: [PATCH] Update package version to 1.4.328.1 --- pkg.info | 17 ++++++++++++++--- source.sh | 28 +++++++--------------------- 2 files changed, 21 insertions(+), 24 deletions(-) diff --git a/pkg.info b/pkg.info index ad5c203..651c26f 100644 --- a/pkg.info +++ b/pkg.info @@ -1,9 +1,20 @@ name: spirv-tools description: API and commands for processing SPIR-V modules -version: 1.4.321.0 +version: 1.4.328.1 +revision: 1 url: https://www.khronos.org/vulkan/ license: Apache2.0 architecture: any -depends: ["gcc-libs", "bash"] -make_depends: ["cmake", "ninja", "meson", "python3", "spirv-headers"] type: source +depends: + - gcc-libs + - bash +make_depends: + - cmake + - python3 + - spirv-headers +downloads: + - url: https://github.com/KhronosGroup/SPIRV-Tools/archive/refs/tags/vulkan-sdk-${BPM_PKG_VERSION}/SPIRV-Tools-${BPM_PKG_VERSION}.tar.gz + extract_to: ${BPM_SOURCE} + extract_strip_components: 1 + checksum: d00dc47df7163c2bacd70f090441e8fad96234f0e3b96c54ee9091a49e627adb diff --git a/source.sh b/source.sh index b2f1d83..122aff7 100644 --- a/source.sh +++ b/source.sh @@ -2,44 +2,30 @@ # BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE # BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT -DOWNLOAD="https://github.com/KhronosGroup/SPIRV-Tools/archive/refs/tags/vulkan-sdk-${BPM_PKG_VERSION}/SPIRV-Tools-${BPM_PKG_VERSION}.tar.gz" -FILENAME="${DOWNLOAD##*/}" - -# The prepare function is executed in the root of the temp directory -# This function is used for downloading files and putting them into the correct location -prepare() { - wget "$DOWNLOAD" - tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE" -} - # 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 \ -DSPIRV_WERROR=OFF \ -DBUILD_SHARED_LIBS=ON \ -DSPIRV_TOOLS_BUILD_STATIC=OFF \ - -DSPIRV-Headers_SOURCE_DIR=/usr \ - -G Ninja .. - ninja + -DSPIRV-Headers_SOURCE_DIR=/usr + cmake --build build } # The check function is executed in the source directory # This function is used to run tests to verify the package has been compiled correctly check() { - cd build - ninja test + ctest --test-dir 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 "$BPM_OUTPUT"/usr/share/licenses/spirv-tools/LICENSE }