mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-06 01:44:36 +02:00
40 lines
1,016 B
Text
40 lines
1,016 B
Text
# Contributor: Leo <thinkabit.ukim@gmail.com>
|
|
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
|
|
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
|
|
pkgname=cbindgen
|
|
# Please be VERY careful bumping this - Firefox regularly fails to build
|
|
# with new versions!
|
|
pkgver=0.28.0
|
|
pkgrel=0
|
|
pkgdesc="Tool to generate C bindings from Rust code"
|
|
url="https://github.com/eqrion/cbindgen"
|
|
arch="all"
|
|
license="MPL-2.0"
|
|
makedepends="cargo cargo-auditable"
|
|
checkdepends="cython"
|
|
source="$pkgname-$pkgver.tar.gz::https://crates.io/api/v1/crates/cbindgen/$pkgver/download"
|
|
options="net"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
cargo fetch --target="$CTARGET" --locked
|
|
}
|
|
|
|
build() {
|
|
cargo auditable build --release --frozen
|
|
}
|
|
|
|
check() {
|
|
# Failing tests
|
|
rm -rf tests/rust/expand*
|
|
cargo test --frozen
|
|
}
|
|
|
|
package() {
|
|
install -Dm0755 target/release/cbindgen -t "$pkgdir"/usr/bin
|
|
}
|
|
|
|
sha512sums="
|
|
aceb387c6e465db6466175d9b9d95bf4e2b97f291404aa3da3df1c9cd71acb2aab0eaf8ab1a8a3783bb55eb54ebc733d0c8b31e9f9d771678fa5a23c9c627485 cbindgen-0.28.0.tar.gz
|
|
"
|