# Maintainer: Jan Alexander Steffens (heftig) pkgname=cbindgen pkgver=0.6.6 pkgrel=1 pkgdesc="A tool for generating C bindings to Rust code" url="https://github.com/eqrion/cbindgen" arch=(x86_64) license=(MPL2) depends=(gcc-libs) makedepends=(cargo git) _commit=54424c5474513f6a3abe079c3adb6ef6e6115091 # tags/v0.6.6^0 source=("git+https://github.com/eqrion/cbindgen#commit=$_commit") sha512sums=('SKIP') pkgver() { cd $pkgname git describe --tags | sed 's/^v//;s/-/+/g' } build() { cd $pkgname cargo build --release } check() { cd $pkgname cargo test --release } package() { cd $pkgname install -Dt "$pkgdir/usr/bin" target/release/cbindgen install -Dt "$pkgdir/usr/share/doc/$pkgname" -m644 README.md }