1
0
forked from ports/contrib
contrib/cbindgen/Pkgfile
2019-05-08 22:50:24 +10:00

22 lines
525 B
Plaintext

# Description: Generate C bindings from rust code
# URL: https://github.com/eqrion/cbindgen
# Maintainer: Danny Rawlins, crux at romster dot me
# Depends on: rust
# Optional: sccache
name=cbindgen
version=0.8.6
release=1
source=(https://github.com/eqrion/cbindgen/archive/v$version/$name-v$version.tar.gz)
build() {
cd $name-$version
prt-get isinst sccache && export RUSTC_WRAPPER=/usr/bin/sccache
export CARGO_HOME="$PKGMK_SOURCE_DIR"
cargo build --release
cargo install --root $PKG/usr
rm $PKG/usr/.crates.toml
}