BLD Add DISTDIR variable. ### Description

Adds `DISTDIR` env variable that points to the directory where libraries should be copied to when building shared libraries with recipe.

### Checklists

- [x] Add new / update outdated documentation

package:
  name: pyerfa
  version: 2.0.0.1
  top-level:
    - erfa
source:
  url: https://files.pythonhosted.org/packages/78/fd/0148f0e54f0c6f48a141409df65d74a5f1dae2e139f23d50a43c58c16098/pyerfa-2.0.0.1.tar.gz
  sha256: 2fd4637ffe2c1e6ede7482c13f583ba7c73119d78bef90175448ce506a0ede30
  patches:
    # Patch fixes error:
    #
    # erfa/ufunc.c:9916:54: error: incompatible function pointer types
    # initializing 'PyUFuncGenericFunction' ... with an expression of type ...
    #
    # It has been upstreamed: https://github.com/liberfa/pyerfa/pull/89
    # Make sure to remove python3.10 erfa_generator.py below when we remove the
    # patch.
    - patches/0001-Fix-compilation-with-Wincompatible-function-pointer-.patch
build:
  script: |
    # regenerate erfa/ufunc.c from our patched erfa/ufunc.c.templ.
    python3 -m pip install jinja2
    python3 erfa_generator.py
requirements:
  host:
    - numpy
  run:
    - numpy
about:
  home: https://github.com/liberfa/pyerfa
  PyPI: https://pypi.org/project/pyerfa
  summary: Python bindings for ERFA
  license: BSD 3-Clause License

package:
  name: pyerfa
  version: 2.0.0.1
  top-level:
    - erfa
source:
  url: https://files.pythonhosted.org/packages/78/fd/0148f0e54f0c6f48a141409df65d74a5f1dae2e139f23d50a43c58c16098/pyerfa-2.0.0.1.tar.gz
  sha256: 2fd4637ffe2c1e6ede7482c13f583ba7c73119d78bef90175448ce506a0ede30
  patches:
    # Patch fixes error:
    #
    # erfa/ufunc.c:9916:54: error: incompatible function pointer types
    # initializing 'PyUFuncGenericFunction' ... with an expression of type ...
    #
    # It has been upstreamed: https://github.com/liberfa/pyerfa/pull/89
    # Make sure to remove python3.10 erfa_generator.py below when we remove the
    # patch.
    - patches/0001-Fix-compilation-with-Wincompatible-function-pointer-.patch
build:
  script: |
    # regenerate erfa/ufunc.c from our patched erfa/ufunc.c.templ.
    python3 -m pip install jinja2
    python3 erfa_generator.py
requirements:
  host:
    - numpy
  run:
    - numpy
about:
  home: https://github.com/liberfa/pyerfa
  PyPI: https://pypi.org/project/pyerfa
  summary: Python bindings for ERFA
  license: BSD 3-Clause License
