Update package version to 1.1.1

This commit is contained in:
2025-10-03 11:53:01 +03:00
parent 805158a7de
commit e00f84f192
2 changed files with 36 additions and 22 deletions
+31 -3
View File
@@ -1,9 +1,37 @@
name: appstream name: appstream
description: Package providing the foundations to build software-center applications description: Package providing the foundations to build software-center applications
version: 1.1.0 version: 1.1.1
revision: 1
url: https://www.freedesktop.org/wiki/Distributions/AppStream/ url: https://www.freedesktop.org/wiki/Distributions/AppStream/
license: LGPL2.1-or-later license: LGPL2.1-or-later
architecture: any architecture: any
depends: ["cairo", "curl", "fontconfig", "freetype2", "gcc-libs", "gdk-pixbuf", "glib", "glibc", "libfyaml", "librsvg", "libxml2", "libxmlb", "libyaml", "pango", "zstd"]
make_depends: ["gobject-introspection", "gperf", "itstool", "meson", "python-setuptools", "vala", "xmlto"]
type: source type: source
depends:
- cairo
- curl
- fontconfig
- freetype2
- gcc-libs
- gdk-pixbuf
- glib
- glibc
- libfyaml
- librsvg
- libxml2
- libxmlb
- libyaml
- pango
- zstd
make_depends:
- gobject-introspection
- gperf
- itstool
- meson
- python-setuptools
- vala
- xmlto
downloads:
- url: https://www.freedesktop.org/software/appstream/releases/AppStream-${BPM_PKG_VERSION}.tar.xz
extract_to_bpm_source: true
extract_strip_components: 2
checksum: 3b9d325074ede328eed4746d0c4fbfc3b8f6f4fdbc9c173ed70e40569a79b117
+5 -19
View File
@@ -2,22 +2,9 @@
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE # 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 # BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
DOWNLOAD="https://www.freedesktop.org/software/appstream/releases/AppStream-${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=2 -C "$BPM_SOURCE"
}
# 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
cd build
meson setup --prefix=/usr \ meson setup --prefix=/usr \
--libdir=/usr/lib \ --libdir=/usr/lib \
--buildtype=release \ --buildtype=release \
@@ -25,22 +12,21 @@ build() {
-Dvapi=true \ -Dvapi=true \
-Dsystemd=false \ -Dsystemd=false \
-Dstemming=false \ -Dstemming=false \
-Dqt=false .. -Dqt=false build
ninja meson compile -C build
} }
# The check function is executed in the source directory # The check function is executed in the source directory
# This function is used to run tests to verify the package has been compiled correctly # This function is used to run tests to verify the package has been compiled correctly
check() { check() {
cd build meson test -C build
ninja test
} }
# 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/appstream/COPYING install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/appstream/COPYING
} }