Add package flags

This commit is contained in:
2026-06-27 12:12:53 +03:00
parent cc254d0af9
commit 0f6f6072af
2 changed files with 20 additions and 12 deletions
+9 -1
View File
@@ -1,7 +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.15.0 version: 0.15.0
revision: 3 revision: 4
url: https://github.com/Alexays/Waybar url: https://github.com/Alexays/Waybar
license: MIT license: MIT
maintainers: maintainers:
@@ -47,6 +47,14 @@ make_depends:
- scdoc - scdoc
- wayland-protocols - wayland-protocols
- python-setuptools - python-setuptools
flags:
- name: cava
default_value: disabled
accepted_values:
- value: enabled
depends:
- libcava
- value: disabled
downloads: downloads:
- url: https://github.com/Alexays/Waybar/archive/refs/tags/${BPM_PKG_VERSION}.tar.gz - url: https://github.com/Alexays/Waybar/archive/refs/tags/${BPM_PKG_VERSION}.tar.gz
extract_to: ${BPM_SOURCE} extract_to: ${BPM_SOURCE}
+3 -3
View File
@@ -5,17 +5,17 @@
# 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() {
meson setup --prefix=/usr \ meson setup build --prefix=/usr \
--buildtype=plain \ --buildtype=plain \
--auto-features=enabled \ --auto-features=enabled \
--wrap-mode=nodownload \ --wrap-mode=nodownload \
-Dcpp_std=c++20 \ -Dcpp_std=c++20 \
-Dexperimental=true \ -Dexperimental=true \
-Dsystemd=disabled \ -Dsystemd=disabled \
-Dcava=disabled \ -Dcava="$BPM_PKG_FLAG_CAVA" \
-Dtests=enabled \ -Dtests=enabled \
-Dmpris=disabled \ -Dmpris=disabled \
-Dgps=disabled build -Dgps=disabled
meson compile -C build meson compile -C build
} }