diff --git a/rust-bindgen/.footprint b/rust-bindgen/.footprint new file mode 100644 index 000000000..3d926ea95 --- /dev/null +++ b/rust-bindgen/.footprint @@ -0,0 +1,3 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +-rwxr-xr-x root/root usr/bin/bindgen diff --git a/rust-bindgen/.signature b/rust-bindgen/.signature new file mode 100644 index 000000000..201b158d3 --- /dev/null +++ b/rust-bindgen/.signature @@ -0,0 +1,5 @@ +untrusted comment: verify with /etc/ports/opt.pub +RWSE3ohX2g5d/SnOpept+JjmmlNs19Wje/CEwrbX7m5FVIL7tw49dW7UupIcvSeEwTXmOrRquZsDrWuLFq8mGmjFwoqs4FFclQo= +SHA256 (Pkgfile) = ca376f031c04af34946fa21a62db3552af0b96225110fffbb2589b5befb54d25 +SHA256 (.footprint) = 1662dbff2de9322f2626322d56660c935d19188a9072045946af4a44c3ac3b13 +SHA256 (rust-bindgen-0.65.1.tar.gz) = e4f3491ad342a662fda838c34de03c47ef2fa3019952adbfb94fe4109c06ccf2 diff --git a/rust-bindgen/Pkgfile b/rust-bindgen/Pkgfile new file mode 100644 index 000000000..a03e56626 --- /dev/null +++ b/rust-bindgen/Pkgfile @@ -0,0 +1,18 @@ +# Description: Automatically generates Rust FFI bindings to C (and some C++) libraries +# URL: https://github.com/rust-lang/rust-bindgen +# Maintainer: Tim Biermann, tbier at posteo dot de +# Depends on: clang rust + +name=rust-bindgen +version=0.65.1 +release=1 +source=(https://github.com/rust-lang/rust-bindgen/archive/v$version/$name-$version.tar.gz) + +build() { + prt-get isinst sccache && export RUSTC_WRAPPER=/usr/bin/sccache + [[ ! -e $PKGMK_SOURCE_DIR/rust ]] && mkdir $PKGMK_SOURCE_DIR/rust + + cargo build --release --manifest-path $name-$version/Cargo.toml + + install -Dt $PKG/usr/bin $name-$version/target/release/bindgen +}