From 5525b6ebf2c14c829b1c23bc2defd3054734b07b Mon Sep 17 00:00:00 2001 From: Andrew <51118083+ArionThinker@users.noreply.github.com> Date: Sun, 17 Sep 2023 19:46:57 +0300 Subject: [PATCH] new file: projects/x.org/xcursor/package.yml (#3345) new file: projects/x.org/xcursor/test.c --- projects/x.org/xcursor/package.yml | 38 ++++++++++++++++++++++++++++++ projects/x.org/xcursor/test.c | 6 +++++ 2 files changed, 44 insertions(+) create mode 100644 projects/x.org/xcursor/package.yml create mode 100644 projects/x.org/xcursor/test.c diff --git a/projects/x.org/xcursor/package.yml b/projects/x.org/xcursor/package.yml new file mode 100644 index 00000000..469147e2 --- /dev/null +++ b/projects/x.org/xcursor/package.yml @@ -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 diff --git a/projects/x.org/xcursor/test.c b/projects/x.org/xcursor/test.c new file mode 100644 index 00000000..07581c58 --- /dev/null +++ b/projects/x.org/xcursor/test.c @@ -0,0 +1,6 @@ +#include "X11/Xcursor/Xcursor.h" + +int main(int argc, char* argv[]) { + XcursorFileHeader header; + return 0; +} \ No newline at end of file