aboutsummaryrefslogtreecommitdiffstats
path: root/community/cbindgen/APKBUILD
blob: e279a93286a81434335d7087d664056d0cbdb566 (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
29
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=cbindgen
# Please be VERY careful bumping this - Firefox regularly fails to build
# with new versions!
pkgver=0.14.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://crates.io/api/v1/crates/cbindgen/$pkgver/download"

build() {
	cargo build --release --locked --verbose
}

check() {
	# Failing tests
	rm -rf tests/rust/expand*
	cargo test --release --locked --verbose
}

package() {
	install -Dm0755 target/release/cbindgen -t "$pkgdir"/usr/bin
}

sha512sums="a6937dd4eec1a1075265d3f6ff38694018fb9dee300b349062fbfa490b2d67c16d4a9154309367eec36686abeadf2fa61fd47170860e81893e91ad4cba820ed7  cbindgen-0.14.1.tar.gz"