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
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}
+3 -3
View File
@@ -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 \
meson setup build --prefix=/usr \
--buildtype=plain \
--auto-features=enabled \
--wrap-mode=nodownload \
-Dcpp_std=c++20 \
-Dexperimental=true \
-Dsystemd=disabled \
-Dcava=disabled \
-Dcava="$BPM_PKG_FLAG_CAVA" \
-Dtests=enabled \
-Dmpris=disabled \
-Dgps=disabled build
-Dgps=disabled
meson compile -C build
}