aboutsummaryrefslogtreecommitdiffstats
path: root/community/cbindgen/APKBUILD
blob: 978d103a1c7325908fc86fb8f53a7c424a903bf6 (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
28
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Leo <thinkabit.ukim@gmail.com>
pkgname=cbindgen
pkgver=0.9.0
pkgrel=1
pkgdesc="Tool to generate C bindings from Rust code"
url="https://github.com/eqrion/cbindgen"
arch="x86_64 armhf armv7" # 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() {
	cargo install --path . --root="$pkgdir"/usr
	rm "$pkgdir"/usr/.crates.toml
}

sha512sums="d66e702e903eace6b888ee76e3f1581972f45f3e8ec25e989186b50862e1479902d18f04a3783a7617ce5d6e4091186dc8d30929c667d691338c1e9d43f27821  cbindgen-0.9.0.tar.gz"