Add check-version.sh script and update source.sh script

This commit is contained in:
2025-09-10 18:25:14 +03:00
parent 2f455d5266
commit 55e491a38e
2 changed files with 8 additions and 9 deletions
+4
View File
@@ -0,0 +1,4 @@
#!/bin/sh
# Ignore this package
echo "ignore"
+4 -9
View File
@@ -15,25 +15,20 @@ 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 --libdir=/usr/lib --buildtype=release -Dssh_agent=false -Dgtk_doc=false build
cd build meson compile -C build
meson setup --prefix=/usr --libdir=/usr/lib --buildtype=release -Dssh_agent=false -Dgtk_doc=false ..
ninja
} }
# 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 dbus-run-session meson test -C build --print-errorlogs
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 -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/gcr/COPYING install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/gcr/COPYING
} }