{% set version = "3.0.2" %}

package:
  name: hydrotrend
  version: {{ version }}

source:
  url: https://github.com/csdms-contrib/hydrotrend/archive/{{ version }}.tar.gz
  sha256: 2952fe87220c625b606f41562ba2101f5660950852910e54c2ecc8d188510397

build:
  number: 0

requirements:
  build:
    - {{ compiler('c') }}
    - cmake

test:
  commands:
    - hydrotrend -h
    - curl https://raw.githubusercontent.com/csdms-contrib/hydrotrend/master/data/input/HYDRO.IN > ./HYDRO.IN
    - curl https://raw.githubusercontent.com/csdms-contrib/hydrotrend/master/data/input/HYDRO0.HYPS > ./HYDRO0.HYPS
    - hydrotrend --prefix=HYDRO --in-dir=. --out-dir=.

about:
  home: http://csdms.colorado.edu/wiki/Model:HydroTrend
  license: MIT
  license_family: MIT
  license_file: COPYING
  summary: Climate driven hydrological transport model
  description:
    HydroTrend v3.0 is a climate-driven hydrological water balance
    and transport model that simulates water discharge and sediment
    load at a river outlet.
  doc_url: http://csdms.colorado.edu/wiki/Model:HydroTrend
  dev_url: http://github.com/csdms-contrib/hydrotrend

extra:
  recipe-maintainers:
    - mcflugen

Add conda recipe for hydrotrend model.
Add conda recipe for hydrotrend model.
