mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 21:56:42 +00:00
bindgen-cli: initial package
needed by librespot-0.6.0
This commit is contained in:
parent
59d8a247e8
commit
c1b41c26be
27
packages/rust/bindgen-cli/package.mk
Normal file
27
packages/rust/bindgen-cli/package.mk
Normal file
@ -0,0 +1,27 @@
|
||||
# spdx-license-identifier: gpl-2.0-only
|
||||
# copyright (c) 2024-present team libreelec (https://libreelec.tv)
|
||||
|
||||
PKG_NAME="bindgen-cli"
|
||||
PKG_VERSION="0.72.0"
|
||||
PKG_SHA256="1da7050a17fdab0e20d5d8c20d48cddce2973e8b7cb0afc15185bfad22f8ce5b"
|
||||
PKG_LICENSE="BSD-3-Clause"
|
||||
PKG_SITE="https://rust-lang.github.io/rust-bindgen/"
|
||||
PKG_URL="https://github.com/rust-lang/rust-bindgen/archive/v${PKG_VERSION}.tar.gz"
|
||||
PKG_DEPENDS_HOST="cargo:host"
|
||||
PKG_LONGDESC="Automatically generates Rust FFI bindings to C and some C++ libraries"
|
||||
PKG_TOOLCHAIN="manual"
|
||||
|
||||
configure_host() {
|
||||
cd ${PKG_BUILD}
|
||||
}
|
||||
|
||||
make_host() {
|
||||
cd ${PKG_BUILD}
|
||||
|
||||
cargo build -v --target ${RUST_HOST} --release
|
||||
}
|
||||
|
||||
makeinstall_host() {
|
||||
mkdir -p ${TOOLCHAIN}/bin
|
||||
cp -a ${PKG_BUILD}/.${RUST_HOST}/target/${RUST_HOST}/release/bindgen ${TOOLCHAIN}/bin/
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user