Update package version to 2.5.1

This commit is contained in:
2026-07-08 13:33:39 +03:00
parent 87cabfcaf6
commit a4d5f509a2
3 changed files with 15 additions and 14 deletions
+4 -11
View File
@@ -2,20 +2,10 @@
# 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://gitlab.freedesktop.org/xdg/shared-mime-info/-/archive/${BPM_PKG_VERSION}/shared-mime-info-${BPM_PKG_VERSION}.tar.gz"
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() {
meson setup --prefix=/usr --buildtype=release -Dupdate-mimedb=true build
meson setup --prefix=/usr --buildtype=release -Dupdate-mimedb=false -Dbuild-tests=false build
meson compile -C build
}
@@ -24,6 +14,9 @@ build() {
package() {
meson install -C build --destdir="$BPM_OUTPUT"
# Install bpm hook
install -Dm644 "$BPM_WORKDIR"/update-mime-database.bpmhook "$BPM_OUTPUT"/var/lib/bpm/hooks/update-mime-database.bpmhook
# Install package license
install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/shared-mime-info/COPYING
}