{% set version = '%s_%04i_%s'|format(
    environ.get('GIT_DESCRIBE_TAG', 'v0.X'),
    environ.get('GIT_DESCRIBE_NUMBER', '0')|int,
    environ.get('GIT_DESCRIBE_HASH', 'gUNKNOWN')
    ) %}

package:
  name: libhidapi
  version: {{ version }}

source:
  git_url: https://github.com/libusb/hidapi
  git_rev: master

build:
  # number: 201803050325
  number: {{ environ.get('DATE_NUM') }}
  # string: 20180305_0325
  string: {{ environ.get('DATE_STR') }}
  script_env:
    - CI
    - TRAVIS

requirements:
  build:
    - {{ compiler('c') }}
    - libusb
    - automake
    - autoconf
    - cmake
    - libtool
    - make
  host:
    - pkg-config [not win]

about:
  home: http://libusb.org
  license: GPLv3
  summary: 'Multi-platform library which allows interfacing with USB and Bluetooth HID-Class devices'

{% set version = '%s_%04i_%s'|format(
    environ.get('GIT_DESCRIBE_TAG', 'v0.X'),
    environ.get('GIT_DESCRIBE_NUMBER', '0')|int,
    environ.get('GIT_DESCRIBE_HASH', 'gUNKNOWN')
    ) %}

package:
  name: libhidapi
  version: {{ version }}

source:
  git_url: https://github.com/libusb/hidapi
  git_rev: master

build:
  # number: 201803050325
  number: {{ environ.get('DATE_NUM') }}
  # string: 20180305_0325
  string: {{ environ.get('DATE_STR') }}
  script_env:
    - CI
    - TRAVIS

requirements:
  build:
    - {{ compiler('c') }}
    - libusb
    - automake [not win]
    - autoconf [not win]
    - cmake
    - libtool [not win]
    - make [not win]
  host:
    - pkg-config [not win]

about:
  home: http://libusb.org
  license: GPLv3
  summary: 'Multi-platform library which allows interfacing with USB and Bluetooth HID-Class devices'

Update libhidapi dependencies for Windows
Update libhidapi dependencies for Windows
