From 6ff2d37be1af5cfd9a36708753254d1097ee94cb Mon Sep 17 00:00:00 2001 From: Andrii Riabchenko Date: Mon, 25 Sep 2023 14:17:11 +0300 Subject: [PATCH] new file: projects/freedesktop.org/xcb-util/package.yml new file: projects/freedesktop.org/xcb-util/test.c --- projects/freedesktop.org/xcb-util/package.yml | 34 +++++++++++++++++++ projects/freedesktop.org/xcb-util/test.c | 6 ++++ 2 files changed, 40 insertions(+) create mode 100644 projects/freedesktop.org/xcb-util/package.yml create mode 100644 projects/freedesktop.org/xcb-util/test.c diff --git a/projects/freedesktop.org/xcb-util/package.yml b/projects/freedesktop.org/xcb-util/package.yml new file mode 100644 index 00000000..5cbb9fda --- /dev/null +++ b/projects/freedesktop.org/xcb-util/package.yml @@ -0,0 +1,34 @@ +distributable: + url: https://xcb.freedesktop.org/dist/xcb-util-{{version}}.tar.xz + strip-components: 1 +versions: + url: https://xcb.freedesktop.org/dist/ + match: /xcb-util-\d+\.\d+\.\d+\.tar\.xz/ + strip: + - /^xcb-util-/ + - /\.tar\.xz/ +dependencies: + x.org/xcb: '*' +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 xcb-util | grep {{version}} diff --git a/projects/freedesktop.org/xcb-util/test.c b/projects/freedesktop.org/xcb-util/test.c new file mode 100644 index 00000000..138f3917 --- /dev/null +++ b/projects/freedesktop.org/xcb-util/test.c @@ -0,0 +1,6 @@ +#include +#include + +int main() { + return 0; +} \ No newline at end of file