# Contributor: Leo # Maintainer: Leo pkgname=cbindgen pkgver=0.8.7 pkgrel=1 pkgdesc="Tool to generate C bindings from Rust code" url="https://github.com/eqrion/cbindgen" arch="x86_64" # Limited by cargo license="MPL-2.0" makedepends="cargo" source="$pkgname-$pkgver.tar.gz::https://github.com/eqrion/cbindgen/archive/v${pkgver}.tar.gz" build() { cargo build --release --verbose } check() { # Failing tests rm -rf tests/rust/expand* cargo test --release --verbose } package() { cargo install --path . --root="$pkgdir"/usr rm "$pkgdir"/usr/.crates.toml } sha512sums="56072e11ee01e4dda7d5dbec4351f40f8cd4bab7b40179ccf300e3b80cc5665f50ac5947b2abaf9c43fdbb1afc272dcd311ba74e4aacda4efefef4c987e7e996 cbindgen-0.8.7.tar.gz"