#!/bin/bash -euo

# build statically linked binary with Rust
LIBRARY_PATH=$PREFIX/lib cargo build --release

cp target/release/prosic $PREFIX/bin

#!/bin/bash -euo

# build statically linked binary with Rust
C_INCLUDE_PATH=$PREFIX/include LIBRARY_PATH=$PREFIX/lib cargo install --root $PREFIX

Use cargo install and set library paths.
Use cargo install and set library paths.
