mirror of
https://github.com/ivabus/pantry
synced 2024-11-23 00:45:07 +03:00
21cf3f5170
closes #3577
45 lines
1.2 KiB
YAML
45 lines
1.2 KiB
YAML
distributable:
|
|
url: https://xkbcommon.org/download/libxkbcommon-{{version}}.tar.xz
|
|
strip-components: 1
|
|
versions:
|
|
github: xkbcommon/libxkbcommon
|
|
strip: /^xkbcommon-/
|
|
dependencies:
|
|
x.org/x11: '*'
|
|
x.org/xcb: '*'
|
|
freedesktop.org/XKeyboardConfig: '*'
|
|
gnome.org/libxml2: '*'
|
|
build:
|
|
dependencies:
|
|
gnu.org/bison: '*'
|
|
mesonbuild.com: '*'
|
|
ninja-build.org: '*'
|
|
freedesktop.org/pkg-config: '*'
|
|
script:
|
|
- meson $MESON_ARGS build
|
|
- meson compile -C build
|
|
- meson install -C build
|
|
env:
|
|
MESON_ARGS:
|
|
- --prefix="{{prefix}}"
|
|
- --libdir="{{prefix}}/lib"
|
|
- --buildtype=release
|
|
- --wrap-mode=nofallback
|
|
- -Denable-wayland=false
|
|
- -Denable-docs=false
|
|
- -Dxkb-config-root={{deps.freedesktop.org/XKeyboardConfig.prefix}}/share/X11/xkb
|
|
- -Dx-locale-root={{deps.freedesktop.org/XKeyboardConfig.prefix}}/share/locale
|
|
darwin:
|
|
MESON_ARGS:
|
|
# has invalid attributes for darwin linking
|
|
- -Denable-x11=false
|
|
provides:
|
|
- bin/xkbcli
|
|
test:
|
|
dependencies:
|
|
freedesktop.org/pkg-config: '*'
|
|
script:
|
|
- pkg-config --modversion xkbcommon | grep {{version}}
|
|
- cc test.c -lxkbcommon -o test
|
|
- ./test
|
|
- xkbcli --version | grep {{version}}
|