Rebuild with libxml2 2.15.0

This commit is contained in:
2025-09-18 12:18:02 +03:00
parent bf52e8afa3
commit 3da9af8697
3 changed files with 17 additions and 8 deletions
+12
View File
@@ -0,0 +1,12 @@
#!/bin/bash
# Gitlab repository
REPO="xdg/shared-mime-info"
# 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"/repository/tags | jq -r '.[0].name')
echo "$TAG_NAME"
+1 -1
View File
@@ -1,7 +1,7 @@
name: shared-mime-info name: shared-mime-info
description: Freedesktop.org Shared MIME Info description: Freedesktop.org Shared MIME Info
version: 2.4 version: 2.4
revision: 2 revision: 3
url: https://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec/ url: https://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec/
license: GPL2 license: GPL2
architecture: any architecture: any
+4 -7
View File
@@ -15,18 +15,15 @@ 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 -Dupdate-mimedb=true build
cd build meson compile -C build
meson setup --prefix=/usr --buildtype=release -Dupdate-mimedb=true ..
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 package license
install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/shared-mime-info/COPYING install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/shared-mime-info/COPYING
} }