pantry/projects/freedesktop.org/xcb-util-image/package.yml

33 lines
832 B
YAML
Raw Normal View History

distributable:
url: https://xcb.freedesktop.org/dist/xcb-util-image-{{version}}.tar.gz
strip-components: 1
versions:
url: https://xcb.freedesktop.org/dist/
match: /xcb-util-image-\d+\.\d+\.\d+\.tar\.gz/
strip:
- /^xcb-util-image-/
- /\.tar\.gz/
dependencies:
x.org/xcb: '*'
freedesktop.org/xcb-util: '*'
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
2023-09-30 19:15:42 +03:00
- pkg-config --modversion xcb-image | grep {{version}}