{% set name = "libcifpp" %}
{% set version = "8.0.1" %}
{% set sha256 = "53f0ff205711428dcabf9451b23804091539303cea9d2f54554199144ca0fc4e" %}

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

source:
  url: https://github.com/PDB-REDO/{{ name|lower }}/archive/v{{ version }}.tar.gz
  sha256: {{ sha256 }}

build:
  number: 1
  run_exports:
    - {{ pin_subpackage(name|lower, max_pin="x") }}

requirements:
  build:
    - {{ compiler('cxx') }}
    - cmake
    - ninja
    - pkg-config
  host:
    - eigen
    # Use v1.86.0 to match the version pinned in conda-forge
    - libboost-devel >=1.86.0,<1.87.0a0  # [linux]
    - zlib

test:
  commands:
    - test -e ${PREFIX}/lib/libcifpp.a

about:
  home: "https://github.com/PDB-REDO/libcifpp"
  license: "BSD-2-Clause"
  license_file: LICENSE
  license_family: BSD
  summary: "Library containing code to manipulate mmCIF and PDB files."
  doc_url: "https://pdb-redo.github.io/libcifpp"
  dev_url: "https://github.com/PDB-REDO/libcifpp"
  description: |
    This library, libcifpp, is a generic CIF library with some specific additions to work with mmCIF files.
    The main focus of this library is to make sure that files read or written are valid.
    That is, they are syntactically valid and their content is valid with respect to a CIF dictionary, if such a dictionary is available and specified.

extra:
  recipe-maintainers:
    - multimeric
  additional-platforms:
    - linux-aarch64
    - osx-arm64
