Update source.sh script and raise revision number

This commit is contained in:
2025-09-11 10:16:09 +03:00
parent 9aceb92c10
commit 0af462e1a5
2 changed files with 7 additions and 9 deletions
+1
View File
@@ -1,6 +1,7 @@
name: waybar name: waybar
description: Highly customizable Wayland bar for Sway and Wlroots based compositors description: Highly customizable Wayland bar for Sway and Wlroots based compositors
version: 0.14.0 version: 0.14.0
revision: 2
url: https://github.com/Alexays/Waybar url: https://github.com/Alexays/Waybar
license: MIT license: MIT
architecture: any architecture: any
+6 -9
View File
@@ -17,9 +17,6 @@ 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
cd build
meson setup --prefix=/usr \ meson setup --prefix=/usr \
--buildtype=plain \ --buildtype=plain \
--auto-features=enabled \ --auto-features=enabled \
@@ -30,21 +27,21 @@ build() {
-Dcava=disabled \ -Dcava=disabled \
-Dtests=enabled \ -Dtests=enabled \
-Dmpris=disabled \ -Dmpris=disabled \
-Dgps=disabled .. -Dgps=disabled 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 --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 package license
install -Dm644 "$BPM_SOURCE"/LICENSE "$BPM_OUTPUT"/usr/share/licenses/waybar/LICENSE install -Dm644 "$BPM_SOURCE"/LICENSE "$BPM_OUTPUT"/usr/share/licenses/waybar/LICENSE
} }