warnings:
  - deprecated

distributable:
  url: https://github.com/antimatter15/alpaca.cpp/archive/refs/tags/81bd894.tar.gz
  strip-components: 1

versions:
  - 2023.03.21

provides:
  - bin/alpaca.cpp

build:
  dependencies:
    freedesktop.org/pkg-config: ~0.29
    gnu.org/wget: '*'
  script: |
    mkdir -p {{prefix}}/bin {{prefix}}/tbin {{prefix}}/share

    make chat
    mv chat {{prefix}}/tbin/alpaca.cpp

    mv props/alpaca.cpp {{prefix}}/bin
    mv props/alpaca.cpp-fetch-model {{prefix}}/tbin

test: |
  {{prefix}}/tbin/alpaca.cpp --help
# testing more than this requires downloading the models 😬
