pkgname=cbindgen pkgver=0.26.0 pkgrel=1 pkgdesc="Project for generating C bindings from Rust code" url="https://github.com/eqrion/cbindgen" arch=('x86_64') license=('MPL2') depends=('gcc-libs') makedepends=('rust') source=("https://github.com/eqrion/cbindgen/archive/v${pkgver}.tar.gz") md5sums=('f3ef70691bc4743b8f76ca6d27847ba4') build() { cd ${pkgname}-${pkgver} cargo build --release } package() { cd ${pkgname}-${pkgver} install -Dt ${pkgdir}/usr/bin target/release/cbindgen install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE }