From 0af462e1a578e7f7764ac7bc225692a69d6fbcca Mon Sep 17 00:00:00 2001 From: EnumDev Date: Thu, 11 Sep 2025 10:16:09 +0300 Subject: [PATCH] Update source.sh script and raise revision number --- pkg.info | 1 + source.sh | 15 ++++++--------- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/pkg.info b/pkg.info index 574cfa8..252020c 100644 --- a/pkg.info +++ b/pkg.info @@ -1,6 +1,7 @@ name: waybar description: Highly customizable Wayland bar for Sway and Wlroots based compositors version: 0.14.0 +revision: 2 url: https://github.com/Alexays/Waybar license: MIT architecture: any diff --git a/source.sh b/source.sh index d4d439e..1b0c79b 100644 --- a/source.sh +++ b/source.sh @@ -17,9 +17,6 @@ prepare() { # The build function is executed in the source directory # This function is used to compile the source code build() { - mkdir build - cd build - meson setup --prefix=/usr \ --buildtype=plain \ --auto-features=enabled \ @@ -30,21 +27,21 @@ build() { -Dcava=disabled \ -Dtests=enabled \ -Dmpris=disabled \ - -Dgps=disabled .. - ninja + -Dgps=disabled build + meson compile -C build } # The check function is executed in the source directory # This function is used to run tests to verify the package has been compiled correctly check() { - cd build - ninja test + meson test -C build --print-errorlogs } # The package function is executed in the source directory # This function is used to move the compiled files into the output directory package() { - cd build - DESTDIR="$BPM_OUTPUT" ninja install + meson install -C build --destdir="$BPM_OUTPUT" + + # Install package license install -Dm644 "$BPM_SOURCE"/LICENSE "$BPM_OUTPUT"/usr/share/licenses/waybar/LICENSE }