mirror of
https://github.com/ivabus/pantry
synced 2024-11-26 02:15:06 +03:00
new file: projects/x.org/xkbfile/package.yml
new file: projects/x.org/xkbfile/test.c
This commit is contained in:
parent
49ce9ce319
commit
2ac5327dd1
2 changed files with 42 additions and 0 deletions
34
projects/x.org/xkbfile/package.yml
Normal file
34
projects/x.org/xkbfile/package.yml
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
distributable:
|
||||||
|
url: https://www.x.org/archive/individual/lib/libxkbfile-{{version}}.tar.xz
|
||||||
|
strip-components: 1
|
||||||
|
versions:
|
||||||
|
url: https://www.x.org/archive/individual/lib/
|
||||||
|
match: /libxkbfile-\d+\.\d+\.\d+\.tar\.xz/
|
||||||
|
strip:
|
||||||
|
- /^libxkbfile-/
|
||||||
|
- /\.tar\.xz/
|
||||||
|
dependencies:
|
||||||
|
x.org/x11: '*'
|
||||||
|
build:
|
||||||
|
dependencies:
|
||||||
|
tea.xyz/gx/cc: c99
|
||||||
|
tea.xyz/gx/make: '*'
|
||||||
|
freedesktop.org/pkg-config: '*'
|
||||||
|
script:
|
||||||
|
- ./configure $CONFIGURE_ARGS
|
||||||
|
- make --jobs {{ hw.concurrency }}
|
||||||
|
- make --jobs {{ hw.concurrency }} install
|
||||||
|
env:
|
||||||
|
CONFIGURE_ARGS:
|
||||||
|
- --disable-debug
|
||||||
|
- --disable-dependency-tracking
|
||||||
|
- --prefix="{{prefix}}"
|
||||||
|
- --libdir="{{prefix}}/lib"
|
||||||
|
test:
|
||||||
|
dependencies:
|
||||||
|
tea.xyz/gx/cc: c99
|
||||||
|
freedesktop.org/pkg-config: '*'
|
||||||
|
script:
|
||||||
|
- cc test.c -o test
|
||||||
|
- ./test
|
||||||
|
- pkg-config --modversion xkbfile | grep {{version}}
|
8
projects/x.org/xkbfile/test.c
Normal file
8
projects/x.org/xkbfile/test.c
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <X11/XKBlib.h>
|
||||||
|
#include "X11/extensions/XKBfile.h"
|
||||||
|
|
||||||
|
int main(int argc, char* argv[]) {
|
||||||
|
XkbFileInfo info;
|
||||||
|
return 0;
|
||||||
|
}
|
Loading…
Reference in a new issue