Rebuild with automatic stripping and fix tests

This commit is contained in:
2025-10-28 12:07:26 +02:00
parent 4b8c2f0a71
commit ac8e6873b0
3 changed files with 50 additions and 3 deletions
+4 -2
View File
@@ -6,13 +6,15 @@
# This function is used for putting downloaded files to the correct location or applying patches
prepare() {
cd "$BPM_SOURCE"
patch -Np1 -i "$BPM_WORKDIR"/xml-treat-user-stop-errors-as-successful-parses.patch
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}
# 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 build
meson setup --prefix=/usr -Davif=enabled -Dpixbuf-loader=disabled build
meson compile -C build
}
@@ -25,7 +27,7 @@ check() {
# The package function is executed in the source directory
# This function is used to move the compiled files into the output directory
package() {
meson install -C build --destdir="$BPM_OUTPUT"
meson install -C build --destdir="$BPM_OUTPUT" --no-rebuild
# Install package license
install -Dm644 "$BPM_SOURCE"/COPYING.LIB "$BPM_OUTPUT"/usr/share/licenses/librsvg/COPYING.LIB