NAME="cbindgen"
DESC="Generate C bindings for Rust code."
VERSION="0.24.3"
FILES=("https://github.com/eqrion/cbindgen/archive/v$VERSION/cbindgen-$VERSION.tar.gz")
HASHES=("6aa2991ca8411f9ebf9961e8b873e884")
DEPENDS=()

PACKAGE() {
  tar xf $NAME-$VERSION.tar.gz
  cd $NAME-$VERSION

  cargo build --release
  mkdir -pv "$ROOTDIR/usr/bin"
  install -Dm755 target/release/cbindgen "$ROOTDIR/usr/bin/"

  cd .. && rm -r $NAME-$VERSION
}
