sbcl 2.1.11 rebuild
[arch-packages.git] / cbindgen / trunk / PKGBUILD
blobe882ff4c78b3a0579347f3d0b5ce03baeb13c32c
1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
3 pkgname=cbindgen
4 pkgver=0.20.0
5 pkgrel=1
6 pkgdesc="A tool for generating C bindings to Rust code"
7 url="https://github.com/eqrion/cbindgen"
8 arch=(x86_64)
9 license=(MPL2)
10 depends=(gcc-libs)
11 makedepends=(cargo git)
12 checkdepends=(cython)
13 _commit=41506d5aeb2be8d200f52d08afb0c243414eb00d  # tags/v0.20.0^0
14 source=("git+https://github.com/eqrion/cbindgen#commit=$_commit")
15 sha512sums=('SKIP')
17 pkgver() {
18   cd $pkgname
19   git describe --tags | sed 's/^v//;s/-/+/g'
22 prepare() {
23   cd $pkgname
24   cargo fetch --locked --target x86_64-unknown-linux-gnu
27 build() {
28   cd $pkgname
29   cargo build --release --frozen --all-targets
32 check() {
33   cd $pkgname
34   # Tests need nightly features
35   RUSTC_BOOTSTRAP=1 cargo test --release --frozen
38 package() {
39   cd $pkgname
40   install -Dt "$pkgdir/usr/bin" target/release/cbindgen
41   install -Dt "$pkgdir/usr/share/doc/$pkgname" -m644 README.md