mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
new file: projects/x.org/xcomposite/package.yml
new file: projects/x.org/xcomposite/test.c
This commit is contained in:
parent
2ac5327dd1
commit
9c16f754ac
36
projects/x.org/xcomposite/package.yml
Normal file
36
projects/x.org/xcomposite/package.yml
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
distributable:
|
||||||
|
url: https://www.x.org/archive/individual/lib/libXcomposite-{{version}}.tar.xz
|
||||||
|
strip-components: 1
|
||||||
|
versions:
|
||||||
|
url: https://www.x.org/archive/individual/lib/
|
||||||
|
match: /libXcomposite-\d+\.\d+\.\d+\.tar\.xz/
|
||||||
|
strip:
|
||||||
|
- /^libXcomposite-/
|
||||||
|
- /\.tar\.xz/
|
||||||
|
dependencies:
|
||||||
|
x.org/x11: '*'
|
||||||
|
x.org/xfixes: '*'
|
||||||
|
x.org/protocol: '*'
|
||||||
|
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 xcomposite | grep {{version}}
|
6
projects/x.org/xcomposite/test.c
Normal file
6
projects/x.org/xcomposite/test.c
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
#include "X11/Xlib.h"
|
||||||
|
#include "X11/extensions/Xcomposite.h"
|
||||||
|
|
||||||
|
int main() {
|
||||||
|
return 0;
|
||||||
|
}
|
Loading…
Reference in a new issue