From 0c64a9440f6c079a7e96633ab763837df4021d94 Mon Sep 17 00:00:00 2001 From: EnumDev Date: Fri, 26 Jun 2026 21:07:08 +0300 Subject: [PATCH] Add package flags --- info.yml | 18 ++++++++++++++++-- recipe.sh | 10 +++------- 2 files changed, 19 insertions(+), 9 deletions(-) diff --git a/info.yml b/info.yml index 803a18d..6ea2241 100644 --- a/info.yml +++ b/info.yml @@ -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} diff --git a/recipe.sh b/recipe.sh index cfbdb89..79c352b 100644 --- a/recipe.sh +++ b/recipe.sh @@ -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() {