diff --git a/info.yml b/info.yml index 0c7634d..54f14ba 100644 --- a/info.yml +++ b/info.yml @@ -1,7 +1,7 @@ name: waybar description: Highly customizable Wayland bar for Sway and Wlroots based compositors version: 0.15.0 -revision: 3 +revision: 4 url: https://github.com/Alexays/Waybar license: MIT maintainers: @@ -47,6 +47,14 @@ make_depends: - scdoc - wayland-protocols - python-setuptools +flags: + - name: cava + default_value: disabled + accepted_values: + - value: enabled + depends: + - libcava + - value: disabled downloads: - url: https://github.com/Alexays/Waybar/archive/refs/tags/${BPM_PKG_VERSION}.tar.gz extract_to: ${BPM_SOURCE} diff --git a/recipe.sh b/recipe.sh index 92ead4c..3fe1613 100644 --- a/recipe.sh +++ b/recipe.sh @@ -5,17 +5,17 @@ # The build function is executed in the source directory # This function is used to compile the source code build() { - meson setup --prefix=/usr \ - --buildtype=plain \ - --auto-features=enabled \ - --wrap-mode=nodownload \ - -Dcpp_std=c++20 \ - -Dexperimental=true \ - -Dsystemd=disabled \ - -Dcava=disabled \ - -Dtests=enabled \ - -Dmpris=disabled \ - -Dgps=disabled build + meson setup build --prefix=/usr \ + --buildtype=plain \ + --auto-features=enabled \ + --wrap-mode=nodownload \ + -Dcpp_std=c++20 \ + -Dexperimental=true \ + -Dsystemd=disabled \ + -Dcava="$BPM_PKG_FLAG_CAVA" \ + -Dtests=enabled \ + -Dmpris=disabled \ + -Dgps=disabled meson compile -C build }