Add package flags
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
name: xorg-xdpyinfo
|
name: xorg-xdpyinfo
|
||||||
description: Display information utility for X
|
description: Display information utility for X
|
||||||
version: 1.4.0
|
version: 1.4.0
|
||||||
revision: 3
|
revision: 4
|
||||||
url: https://xorg.freedesktop.org/
|
url: https://xorg.freedesktop.org/
|
||||||
license: custom
|
license: custom
|
||||||
maintainers:
|
maintainers:
|
||||||
@@ -12,7 +12,6 @@ depends:
|
|||||||
- libx11
|
- libx11
|
||||||
- libxcomposite
|
- libxcomposite
|
||||||
- libxext
|
- libxext
|
||||||
- libxinerama
|
|
||||||
- libxrender
|
- libxrender
|
||||||
- libxtst
|
- libxtst
|
||||||
- libxxf86vm
|
- libxxf86vm
|
||||||
@@ -20,6 +19,21 @@ make_depends:
|
|||||||
- meson
|
- meson
|
||||||
- xorg-util-macros
|
- xorg-util-macros
|
||||||
- xorgproto
|
- 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:
|
downloads:
|
||||||
- url: https://www.x.org/pub/individual/app/xdpyinfo-${BPM_PKG_VERSION}.tar.xz
|
- url: https://www.x.org/pub/individual/app/xdpyinfo-${BPM_PKG_VERSION}.tar.xz
|
||||||
extract_to: ${BPM_SOURCE}
|
extract_to: ${BPM_SOURCE}
|
||||||
|
|||||||
@@ -12,16 +12,12 @@ prepare() {
|
|||||||
# 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 build --prefix=/usr -Dxpresent=disabled
|
meson setup build --prefix=/usr \
|
||||||
|
-Dxpresent="$BPM_PKG_FLAG_XPRESENT" \
|
||||||
|
-Dxinerama="$BPM_PKG_FLAG_XINERAMA"
|
||||||
meson compile -C build
|
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
|
# The package function is executed in the source directory
|
||||||
# This function is used to move the compiled files into the output directory
|
# This function is used to move the compiled files into the output directory
|
||||||
package() {
|
package() {
|
||||||
|
|||||||
Reference in New Issue
Block a user