{% set name = "libnsl" %}
{% set version = "2.0.0" %}

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

source:
  url: https://github.com/thkukuk/{{ name }}/releases/download/v{{ version }}/{{ name }}-{{ version }}.tar.xz
  sha256: 2da075ef1893ebdfc5f074f83ac811873dc06fd5c62bc9a4729fd2e27a40341a

build:
  number: 0
  skip: true  # [not linux]
  run_exports:
    - {{ pin_subpackage('libnsl', max_pin='x.x') }}
  missing_dso_whitelist:
    - $RPATH/ld64.so.1

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

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


about:
  home: https://github.com/thkukuk/libnsl
  license: GPL-2.0-only
  license_family: GPL
  license_file: COPYING
  summary: 'Public client interface library for NIS(YP)'
  doc_url: https://github.com/thkukuk/libnsl
  dev_url: https://github.com/thkukuk/libnsl

extra:
  recipe-maintainers:
    - izahn
    - isuruf
