{% set name = "xcb-util-image" %}
{% set version = "0.4.0" %}

package:
  name: {{ name|lower }}
  version: {{ version }}

source:
  url: https://xcb.freedesktop.org/dist/xcb-util-image-{{ version }}.tar.bz2
  sha256: 2db96a37d78831d643538dd1b595d7d712e04bdccf8896a5e18ce0f398ea2ffc

build:
  number: 0
  skip: true  # [not linux]
  run_exports:
    - {{ pin_subpackage('xcb-util-image', max_pin='x.x') }}

requirements:
  build:
    - {{ compiler('c') }}
    - make
    - pkg-config
  host:
    - libxcb >=1.13
    - xcb-util
    - xorg-xproto
  run:
    - libxcb >=1.13

test:
  commands:
    - test -f ${PREFIX}/lib/libxcb-image.so

about:
  home: https://xcb.freedesktop.org/
  license: MIT
  license_family: MIT
  license_file: COPYING
  summary: 'Port of Xlib XImage and XShmImage functions'

extra:
  recipe-maintainers:
    - erykoff
