Switch to new download format and rebuild with rtkit

This commit is contained in:
2025-11-12 16:46:26 +02:00
parent 0d2ec1e3fb
commit 3facff92eb
2 changed files with 24 additions and 13 deletions
+24 -3
View File
@@ -1,10 +1,31 @@
name: xdg-desktop-portal
description: A portal frontend service for Flatpak and other desktop containment frameworks
version: 1.20.3
revision: 2
url: https://flatpak.github.io/xdg-desktop-portal/
license: LGPL2.1-or-later
architecture: any
depends: ["fuse3", "gcc-libs", "gdk-pixbuf", "glib", "glibc", "gstreamer", "json-glib", "pipewire"]
optional_depends: ["xdg-desktop-portal-implementation"]
make_depends: ["docbook-xsl-nons", "flatpak", "meson", "python-setuptools", "xmlto"]
type: source
depends:
- fuse3
- gcc-libs
- gdk-pixbuf
- glib
- glibc
- gstreamer
- json-glib
- pipewire
- rtkit
optional_depends:
- xdg-desktop-portal-implementation
make_depends:
- docbook-xsl-nons
- flatpak
- meson
- python-setuptools
- xmlto
downloads:
- url: https://github.com/flatpak/xdg-desktop-portal/releases/download/${BPM_PKG_VERSION}/xdg-desktop-portal-${BPM_PKG_VERSION}.tar.xz
extract_to: ${BPM_SOURCE}
extract_strip_components: 1
checksum: 4bfb164937f59107eb1a3cc21abaa948d903c76f3b99fac210cea38ce1da9edc
-10
View File
@@ -2,16 +2,6 @@
# 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/flatpak/xdg-desktop-portal/releases/download/${BPM_PKG_VERSION}/xdg-desktop-portal-${BPM_PKG_VERSION}.tar.xz"
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() {