From b3d6be4a8162bd3167b942f977774aa6457da056 Mon Sep 17 00:00:00 2001 From: Jacob Heider Date: Fri, 27 Sep 2024 15:29:01 -0400 Subject: [PATCH] +xcb-util ref: #7436 --- projects/x.org/xcb-util/package.yml | 33 +++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 projects/x.org/xcb-util/package.yml diff --git a/projects/x.org/xcb-util/package.yml b/projects/x.org/xcb-util/package.yml new file mode 100644 index 0000000000..08fde76ae6 --- /dev/null +++ b/projects/x.org/xcb-util/package.yml @@ -0,0 +1,33 @@ +distributable: + url: https://xcb.freedesktop.org/dist/xcb-util-{{version.raw}}.tar.gz + strip-components: 1 + +versions: + url: https://xcb.freedesktop.org/dist/ + match: /xcb-util-\d+\.\d+(\.\d+)?.tar.gz/ + strip: + - /xcb-util-/ + - /.tar.gz/ + +dependencies: + x.org/xcb: ^1 + +build: + script: + - ./configure $ARGS + - make --jobs {{ hw.concurrency }} install + # .la are unrelocatable, but only used if found + - run: rm *.la + working-directory: ${{prefix}}/lib + env: + SHELF: ${{pkgx.prefix}}/x.org + ARGS: + - --prefix="{{prefix}}" + - --sysconfdir="$SHELF"/etc + - --localstatedir="$SHELF"/var + - --disable-silent-rules + +test: + dependencies: + freedesktop.org/pkg-config: '*' + script: test "$(pkg-config --modversion xcb-util)" = "{{version}}"