mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 16:35:07 +03:00
new file: projects/x.org/xcursor/package.yml (#3345)
new file: projects/x.org/xcursor/test.c
This commit is contained in:
parent
08981e8875
commit
5525b6ebf2
2 changed files with 44 additions and 0 deletions
38
projects/x.org/xcursor/package.yml
Normal file
38
projects/x.org/xcursor/package.yml
Normal file
|
@ -0,0 +1,38 @@
|
|||
distributable:
|
||||
url: https://www.x.org/archive/individual/lib/libXcursor-{{version}}.tar.xz
|
||||
strip-components: 1
|
||||
versions:
|
||||
url: https://xorg.freedesktop.org/archive/individual/lib/
|
||||
match: /libXcursor-\d+\.\d+\.\d+\.tar\.xz/
|
||||
strip:
|
||||
- /^libXcursor-/
|
||||
- /\.tar\.xz/
|
||||
dependencies:
|
||||
x.org/x11: '*'
|
||||
x.org/xfixes: '*'
|
||||
x.org/xrender: '*'
|
||||
build:
|
||||
dependencies:
|
||||
tea.xyz/gx/cc: c99
|
||||
tea.xyz/gx/make: '*'
|
||||
freedesktop.org/pkg-config: '*'
|
||||
x.org/util-macros: '*'
|
||||
script:
|
||||
- ./configure $ARGS
|
||||
- make --jobs {{ hw.concurrency }}
|
||||
- make --jobs {{ hw.concurrency }} install
|
||||
env:
|
||||
ARGS:
|
||||
- --prefix={{prefix}}
|
||||
- --sysconfdir={{tea.prefix}}/x.org/etc
|
||||
- --localstatedir={{tea.prefix}}/x.org/var
|
||||
- --disable-dependency-tracking
|
||||
- --disable-silent-rules
|
||||
test:
|
||||
dependencies:
|
||||
tea.xyz/gx/cc: c99
|
||||
freedesktop.org/pkg-config: '*'
|
||||
script:
|
||||
- pkg-config --modversion xcursor | grep {{version}}
|
||||
- cc test.c -o test
|
||||
- ./test
|
6
projects/x.org/xcursor/test.c
Normal file
6
projects/x.org/xcursor/test.c
Normal file
|
@ -0,0 +1,6 @@
|
|||
#include "X11/Xcursor/Xcursor.h"
|
||||
|
||||
int main(int argc, char* argv[]) {
|
||||
XcursorFileHeader header;
|
||||
return 0;
|
||||
}
|
Loading…
Reference in a new issue