pkgname=cbindgen pkgver=0.27.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=('9349f81198b82c970822c452d08f25e5') 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 }