blob: 136679850c1442f4ca0acdbf8c763a7ff6aef162 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Leo <thinkabit.ukim@gmail.com>
pkgname=cbindgen
pkgver=0.11.1
pkgrel=0
pkgdesc="Tool to generate C bindings from Rust code"
url="https://github.com/eqrion/cbindgen"
arch="x86_64 armv7 armhf aarch64 x86 ppc64le" # 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() {
install -Dm0755 target/release/cbindgen -t "$pkgdir"/usr/bin
}
sha512sums="b39795892b31d05d38acbb43f030d5a0f0d80a0889015af308c6855e008e792381c755dd55144985f074ae3249cc9582e20d98b771f679227e1e9b4402460d0a cbindgen-0.11.1.tar.gz"
|