distributable:
  url: https://github.com/10gic/vanitygen-plusplus/archive/refs/tags/{{version.tag}}.tar.gz
  strip-components: 1

versions:
  github: 10gic/vanitygen-plusplus/tags

dependencies:
  openssl.org: ^1.1
  curl.se: ^8
  pcre.org: ^8

build:
  script:
    - run:
        - make all
        - install -D oclvanityminer '{{prefix}}/bin/oclvanityminer'
        - install -D oclvanitygen++ '{{prefix}}/bin/oclvanitygen++'
      if: darwin
    - run: make most
      if: linux
    - install -D vanitygen++ '{{prefix}}/bin/vanitygen++'
    - install -D keyconv '{{prefix}}/bin/keyconv'

provides:
  linux:
    - bin/vanitygen++
    - bin/keyconv
  darwin:
    - bin/vanitygen++
    - bin/keyconv
    - bin/oclvanitygen++
    - bin/oclvanityminer

test: vanitygen++ 1pkgx
