{% set version = "0.1.12" %}

package:
  name: libusb-compat
  version: {{ version }}

source:
  url: http://downloads.sourceforge.net/libusb/libusb-{{ version }}.tar.gz
  sha256: 37f6f7d9de74196eb5fc0bbe0aea9b5c939de7f500acba3af6fd643f3b538b44

build:
  number: 0
  run_exports:
    # This package is very unlikely to change in the near future as it is
    # legacy code
    - {{ pin_subpackage('libusb-compat') }}
  # For now, start with linux builds ony
  skip: True  # [not linux]

requirements:
  build:
    - {{ compiler('c') }}
    - {{ compiler('cxx') }}
    - libtool  # [unix]
    - pkg-config  # [unix]
    - make  # [unix]

test:
  commands:
    - test -f $PREFIX/include/usb.h
    - test -f $PREFIX/include/usbpp.h
    - test -f $PREFIX/bin/libusb-config
    - test -f $PREFIX/lib/libusb.so
    - test -f $PREFIX/lib/libusb-0.1.so.4

about:
  home: https://sourceforge.net/projects/libusb/files/libusb-0.1%20%28LEGACY%29/
  license: LGPL-2.1
  license_family: LGPL
  license_file: LICENSE
  summary: '(Legacy) A cross-platform library that gives apps easy access to USB devices'

extra:
  recipe-maintainers:
    - hmaarrfk
