From 5962413bd0fa96f324531e574338f90fa5957810 Mon Sep 17 00:00:00 2001 From: EnumDev Date: Sat, 13 Jun 2026 20:01:38 +0300 Subject: [PATCH] Switch to new package format --- check-version.sh | 12 ++++++++++++ pkg.info => info.yml | 13 +++++++++---- source.sh => recipe.sh | 10 +++++++--- 3 files changed, 28 insertions(+), 7 deletions(-) create mode 100644 check-version.sh rename pkg.info => info.yml (74%) rename source.sh => recipe.sh (71%) diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..83ced00 --- /dev/null +++ b/check-version.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# Gitlab repository +REPO="virgl/virglrenderer" + +# Replace slash with URL encoded representation +REPO=$(echo "$REPO" | sed 's|/|%2F|g') + +# Get tag name using Gitlab Rest API +TAG_NAME=$(curl -s -L https://gitlab.freedesktop.org/api/v4/projects/"$REPO"/releases/permalink/latest | jq -r '.tag_name') + +echo "$TAG_NAME" diff --git a/pkg.info b/info.yml similarity index 74% rename from pkg.info rename to info.yml index 71ed867..77c0882 100644 --- a/pkg.info +++ b/info.yml @@ -1,24 +1,29 @@ name: virglrenderer description: Virtual 3D GPU for use inside QEMU virtual machines -version: 1.2.0 +version: 1.3.0 revision: 1 url: https://docs.mesa3d.org/drivers/virgl/ license: MIT +maintainers: + - enumdev@enumerated.dev architecture: any type: source depends: + - gcc-libs + - glibc + - libdrm - libepoxy - libva + - libx11 - mesa - - vulkan-loader make_depends: + - check - meson - python3 - python-pyyaml - vulkan-headers - - check downloads: - url: https://gitlab.freedesktop.org/virgl/virglrenderer/-/archive/${BPM_PKG_VERSION}/virglrenderer-${BPM_PKG_VERSION}.tar.gz extract_to: ${BPM_SOURCE} extract_strip_components: 1 - checksum: 8bae92909021ea87e2087ae96df322f90140c414bd5f38810af3f3e5146a567b + checksum: 065bc56e89e6f631f96101cd62eba0748e48eb888b434edc86e89d05395e76f3 diff --git a/source.sh b/recipe.sh similarity index 71% rename from source.sh rename to recipe.sh index 0aed7d2..1262c4b 100644 --- a/source.sh +++ b/recipe.sh @@ -1,18 +1,22 @@ -# This is the source.sh script. It is executed by BPM in a temporary directory when compiling a source package +# This is the recipe.sh script. It is executed by BPM in a temporary directory when compiling a source package # 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 # The build function is executed in the source directory # This function is used to compile the source code build() { - meson setup build --prefix=/usr -Dvideo=true -Dvenus=true -Dtests=true + meson setup build --prefix=/usr \ + -Ddrm-renderers=amdgpu-experimental,panfrost-experimental,asahi,msm,i915-experimental \ + -Dvideo=true \ + -Dvenus=true \ + -Dtests=true meson compile -C 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() { - meson test -C build --print-errorlogs + VRENDTEST_USE_EGL_SURFACELESS=1 meson test -C build --print-errorlogs } # The package function is executed in the source directory