{% set package = "ucsc-htmlcheck" %}
{% set program = "htmlCheck" %}
{% set version = "482" %}
{% set sha256 = "745d0f0a980e9f863373b0b0a6ad7961a1d0f53a9d7c446e92fc28fc4909431a" %}

package:
  name: "{{ package }}"
  version: "{{ version }}"

source:
  url: "https://hgdownload.cse.ucsc.edu/admin/exe/userApps.archive/userApps.v{{ version }}.src.tgz"
  sha256: "{{ sha256 }}"
  patches:
    - 0001-include.patch
    - 0002-include.linux.patch  # [linux]
    - 0003-common.mk.patch
    - 0004-straw.patch

build:
  number: 0
  run_exports:
    - {{ pin_subpackage(package, max_pin=None) }}

requirements:
  build:
    - make
    - {{ compiler('c') }}
    - {{ compiler('cxx') }}
  host:
    - libpng
    - libuuid
    - mysql-connector-c # [not arm64]
    - libopenssl-static
    - clangdev  # [osx]
    - rsync  # [osx]
    - libiconv
    - bzip2
    - liblzma-devel
    - zlib
  run:
    - libpng
    - libuuid
    - mysql-connector-c # [not arm64]
    - libopenssl-static

test:
  commands:
    # just check for existence and exec bit, because the individual packages have no unified behavior
    - test -x ${PREFIX}/bin/{{ program }}

about:
  home: "https://hgdownload.cse.ucsc.edu/admin/exe"
  license: "Varies; see https://genome.ucsc.edu/license"
  summary: "Do a little reading and verification of html file."
  dev_url: "https://github.com/ucscGenomeBrowser/kent"
  doc_url: "https://github.com/ucscGenomeBrowser/kent/blob/v{{ version }}_base/README"

extra:
  identifiers:
    - biotools:UCSC_Genome_Browser_Utilities
    - doi:10.1093/bib/bbs038
  additional-platforms:
    - linux-aarch64
    - osx-arm64
