mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
xkbcommon.org (#3429)
* new file: projects/xkbcommon.org/package.yml new file: projects/xkbcommon.org/test.c * XKB_CONFIG_ROOT * maybe * wip * .
This commit is contained in:
parent
a8c417ea02
commit
19f0ad4e94
2 changed files with 51 additions and 0 deletions
44
projects/xkbcommon.org/package.yml
Normal file
44
projects/xkbcommon.org/package.yml
Normal file
|
@ -0,0 +1,44 @@
|
|||
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:
|
||||
tea.xyz/gx/cc: c99
|
||||
tea.xyz/gx/make: '*'
|
||||
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
|
||||
provides:
|
||||
- bin/xkbcli
|
||||
test:
|
||||
dependencies:
|
||||
tea.xyz/gx/cc: c99
|
||||
freedesktop.org/pkg-config: '*'
|
||||
script:
|
||||
- pkg-config --modversion xkbcommon | grep {{version}}
|
||||
- cc test.c -lxkbcommon -o test
|
||||
- ./test
|
||||
- xkbcli --version | grep {{version}}
|
7
projects/xkbcommon.org/test.c
Normal file
7
projects/xkbcommon.org/test.c
Normal file
|
@ -0,0 +1,7 @@
|
|||
#include <stdlib.h>
|
||||
#include <xkbcommon/xkbcommon.h>
|
||||
int main() {
|
||||
return (xkb_context_new(XKB_CONTEXT_NO_FLAGS) == NULL)
|
||||
? EXIT_FAILURE
|
||||
: EXIT_SUCCESS;
|
||||
}
|
Loading…
Reference in a new issue