Switch to new package format
This commit is contained in:
@@ -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"
|
||||
+9
-4
@@ -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:
|
||||
- [email protected]
|
||||
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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user