From 4dc067064575ef209473c4668ffddab4d6efff65 Mon Sep 17 00:00:00 2001 From: Andrii Date: Wed, 5 Jul 2023 18:13:41 +0300 Subject: [PATCH] x.org/xdamage --- projects/x.org/xdamage/package.yml | 38 ++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 projects/x.org/xdamage/package.yml diff --git a/projects/x.org/xdamage/package.yml b/projects/x.org/xdamage/package.yml new file mode 100644 index 00000000..378fed1d --- /dev/null +++ b/projects/x.org/xdamage/package.yml @@ -0,0 +1,38 @@ +distributable: + url: https://www.x.org/archive/individual/lib/libXdamage-{{version}}.tar.xz + strip-components: 1 + +versions: + url: https://xorg.freedesktop.org/archive/individual/lib/ + match: /libXdamage-\d+\.\d+(\.\d+)?\.tar\.xz/ + strip: + - /libXdamage-/ + - /.tar.xz/ + +dependencies: + x.org/x11: '*' + x.org/protocol: '*' + x.org/xfixes: '*' + +build: + dependencies: + tea.xyz/gx/cc: c99 + tea.xyz/gx/make: '*' + freedesktop.org/pkg-config: '*' + script: + - ./configure $ARGS + - make --jobs {{ hw.concurrency }} + - make --jobs {{ hw.concurrency }} install + + env: + ARGS: + - --prefix="{{prefix}}" + - --disable-dependency-tracking + - --disable-silent-rules + - --sysconfdir={{tea.prefix}}/x.org/etc + - --localstatedir={{tea.prefix}}/x.org/var + +test: + dependencies: + freedesktop.org/pkg-config: '*' + script: pkg-config --modversion xdamage | grep {{version}} \ No newline at end of file