gmp:
  type: library
  artifact:
    source:
      type: filelist
      url: 'https://ftp.gnu.org/gnu/gmp/'
      regex: '/href="(?<file>gmp-(?<version>[^"]+)\.tar\.xz)"/'
    source-mirror:
      type: url
      url: 'https://dl.static-php.dev/static-php-cli/deps/gmp/gmp-6.3.0.tar.xz'
    metadata:
      license-files: ['@/gmp.txt']
      license: Custom
  headers:
    - gmp.h
  pkg-configs:
    - gmp
  static-libs@unix:
    - libgmp.a
