Update package version to 1.20.3
This commit is contained in:
@@ -0,0 +1,9 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Github repository
|
||||||
|
REPO="flatpak/xdg-desktop-portal"
|
||||||
|
|
||||||
|
# Get tag name using Github Rest API
|
||||||
|
TAG_NAME=$(curl -s -L -H "X-GitHub-Api-Version: 2022-11-28" -H "Authorization: token ${GITHUB_API_TOKEN}" https://api.github.com/repos/"$REPO"/releases/latest | jq -r '.tag_name')
|
||||||
|
|
||||||
|
echo "$TAG_NAME"
|
||||||
@@ -1,7 +1,6 @@
|
|||||||
name: xdg-desktop-portal
|
name: xdg-desktop-portal
|
||||||
description: A portal frontend service for Flatpak and other desktop containment frameworks
|
description: A portal frontend service for Flatpak and other desktop containment frameworks
|
||||||
version: 1.20.0
|
version: 1.20.3
|
||||||
revision: 2
|
|
||||||
url: https://flatpak.github.io/xdg-desktop-portal/
|
url: https://flatpak.github.io/xdg-desktop-portal/
|
||||||
license: LGPL2.1-or-later
|
license: LGPL2.1-or-later
|
||||||
architecture: any
|
architecture: any
|
||||||
|
|||||||
@@ -15,18 +15,14 @@ prepare() {
|
|||||||
# The build function is executed in the source directory
|
# The build function is executed in the source directory
|
||||||
# This function is used to compile the source code
|
# This function is used to compile the source code
|
||||||
build() {
|
build() {
|
||||||
mkdir build
|
meson setup --prefix=/usr --buildtype=release -Dtests=disabled build
|
||||||
cd build
|
meson compile -C build
|
||||||
|
|
||||||
meson setup --prefix=/usr --buildtype=release -Dtests=disabled ..
|
|
||||||
ninja
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# The package function is executed in the source directory
|
# The package function is executed in the source directory
|
||||||
# This function is used to move the compiled files into the output directory
|
# This function is used to move the compiled files into the output directory
|
||||||
package() {
|
package() {
|
||||||
cd build
|
meson install -C build --destdir="$BPM_OUTPUT"
|
||||||
DESTDIR="$BPM_OUTPUT" ninja install
|
|
||||||
|
|
||||||
install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/xdg-desktop-portal/COPYING
|
install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/xdg-desktop-portal/COPYING
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user