pantry/projects/x.org/xcomposite/package.yml
Max Howell 81e7a5e16f
pkgx
2023-10-01 14:44:42 -04:00

34 lines
856 B
YAML

distributable:
url: https://www.x.org/archive/individual/lib/libXcomposite-{{version}}.tar.xz
strip-components: 1
versions:
url: https://www.x.org/archive/individual/lib/
match: /libXcomposite-\d+\.\d+\.\d+\.tar\.xz/
strip:
- /^libXcomposite-/
- /\.tar\.xz/
dependencies:
x.org/x11: '*'
x.org/xfixes: '*'
x.org/protocol: '*'
build:
dependencies:
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:
freedesktop.org/pkg-config: '*'
script:
- cc test.c -o test
- ./test
- pkg-config --modversion xcomposite | grep {{version}}