aboutsummaryrefslogtreecommitdiffstats
path: root/community/cbindgen/APKBUILD
blob: 21ec9499c1e5265659ec7f18f5d4a0f8b90f73e9 (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: Leo <thinkabit.ukim@gmail.com>
pkgname=cbindgen
# Please keep this on 0.9.x for now, FF doesn't work with newer version yet
# as of 71.0
pkgver=0.9.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="1f8148b2e1cbb580fd0ef9f178001851e513de39af6c69507119446dd2edc94af6438a13c87a70afa013612fb7964cf8e351b7f18e7d3732a474a7b8166d3fa8  cbindgen-0.9.1.tar.gz"