Add package flags

This commit is contained in:
2026-06-26 21:07:08 +03:00
parent fb853a2c65
commit 0c64a9440f
2 changed files with 19 additions and 9 deletions
+16 -2
View File
@@ -1,7 +1,7 @@
name: xorg-xdpyinfo
description: Display information utility for X
version: 1.4.0
revision: 3
revision: 4
url: https://xorg.freedesktop.org/
license: custom
maintainers:
@@ -12,7 +12,6 @@ depends:
- libx11
- libxcomposite
- libxext
- libxinerama
- libxrender
- libxtst
- libxxf86vm
@@ -20,6 +19,21 @@ make_depends:
- meson
- xorg-util-macros
- xorgproto
flags:
- name: xpresent
default_value: disabled
accepted_values:
- value: enabled
depends:
- libxpresent
- value: disabled
- name: xinerama
default_value: enabled
accepted_values:
- value: enabled
depends:
- libxinerama
- value: disabled
downloads:
- url: https://www.x.org/pub/individual/app/xdpyinfo-${BPM_PKG_VERSION}.tar.xz
extract_to: ${BPM_SOURCE}
+3 -7
View File
@@ -12,16 +12,12 @@ prepare() {
# The build function is executed in the source directory
# This function is used to compile the source code
build() {
meson setup build --prefix=/usr -Dxpresent=disabled
meson setup build --prefix=/usr \
-Dxpresent="$BPM_PKG_FLAG_XPRESENT" \
-Dxinerama="$BPM_PKG_FLAG_XINERAMA"
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() {
meson test -C build
}
# The package function is executed in the source directory
# This function is used to move the compiled files into the output directory
package() {