#!/bin/sh -e

cargo fetch \
    --locked

cargo build \
    --release \
    --frozen

install -Dm755 target/release/cbindgen "$1/usr/bin/cbindgen"