mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 11:15:13 +03:00
this does not download deps that won't be used for the default build target (the ctarget we are building for implicitly). this makes quite a few fetches faster.. because a ton of crates download a 10mb "windows-sys" that is never used, amongst other things. maybe breaks a thing or two.
32 lines
926 B
Text
32 lines
926 B
Text
# Contributor: Milan P. Stanić <mps@arvanta.net>
|
|
# Maintainer: Milan P. Stanić <mps@arvanta.net>
|
|
|
|
pkgname=rust-bindgen
|
|
pkgver=0.64.0
|
|
pkgrel=0
|
|
pkgdesc="automatically generates Rust FFI bindings to C (and some C++) libraries"
|
|
url="https://github.com/rust-lang/rust-bindgen"
|
|
makedepends="cargo clang"
|
|
arch="all"
|
|
license="BSD-3-Clause"
|
|
options="net !check" # no test
|
|
# temp allow textrels on riscv64
|
|
[ "$CARCH" = "riscv64" ] && options="$options textrels"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/rust-lang/rust-bindgen/archive/v$pkgver.tar.gz"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
cargo fetch --target="$CTARGET" --locked
|
|
}
|
|
|
|
build() {
|
|
cargo build --release --frozen
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 target/release/bindgen "$pkgdir"/usr/bin/bindgen
|
|
}
|
|
|
|
sha512sums="
|
|
4f7bdec4539fbb3e15590b42e14a5e75b2cd3313ab70b0574c1b079f9ace404ab20848aa152d7c83444d96279163e788b5172595528e7d89ba4b3556ddc5296a rust-bindgen-0.64.0.tar.gz
|
|
"
|