pantry/projects/freedesktop.org/xcb-util-keysyms/package.yml
Max Howell 81e7a5e16f
pkgx
2023-10-01 14:44:42 -04:00

32 lines
808 B
YAML

distributable:
url: https://xcb.freedesktop.org/dist/xcb-util-keysyms-{{version}}.tar.gz
strip-components: 1
versions:
url: https://xcb.freedesktop.org/dist/
match: /xcb-util-keysyms-\d+\.\d+\.\d+\.tar\.gz/
strip:
- /^xcb-util-keysyms-/
- /\.tar\.gz/
dependencies:
x.org/xcb: '*'
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 xcb-keysyms | grep {{version}}