ports/contrib (3.4): cbindgen: picked up port
commit 191e121efac504acecf64d1e1b3022a030dfbd8e Author: Danny Rawlins <monster.romster@gmail.com> Date: Wed Dec 26 21:16:30 2018 +1100 cbindgen: picked up port diff --git a/cbindgen/.footprint b/cbindgen/.footprint new file mode 100644 index 00000000..913766fb --- /dev/null +++ b/cbindgen/.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/cbindgen diff --git a/cbindgen/.signature b/cbindgen/.signature new file mode 100644 index 00000000..db0a27c1 --- /dev/null +++ b/cbindgen/.signature @@ -0,0 +1,5 @@ +untrusted comment: verify with /etc/ports/contrib.pub +RWSagIOpLGJF30atpAES4cURrjEGNyi/3/NnMqiUivq57jHYStyDyR9KKkkW9/F7eGr1pt/wgtRSjQcEW+QHfEgnPNG1J+hlqw0= +SHA256 (Pkgfile) = 6eac5be1558e27da7cdb6b08a63771825c699638188242deec57a1d59a1a4bfb +SHA256 (.footprint) = fd60992957bd0010460d49684c69464200651af797acdb98547f4847fc9f3f3c +SHA256 (cbindgen-v0.6.7.tar.gz) = ceafbe2c6d8f7d473db39fb8458081fee2d15b7699ebd114396d5247fb029532 diff --git a/cbindgen/Pkgfile b/cbindgen/Pkgfile new file mode 100644 index 00000000..e3eaf887 --- /dev/null +++ b/cbindgen/Pkgfile @@ -0,0 +1,24 @@ +# 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.6.7 +release=1 +source=(https://github.com/eqrion/cbindgen/archive/v$version/$name-v$version.tar.gz) + +build() { + cd $name-$version + + if [ -n "$(pkginfo -i | grep '^sccache ')" ]; then + export RUSTC_WRAPPER=/usr/bin/sccache + fi + + export CARGO_HOME="$PKGMK_SOURCE_DIR" + + cargo build --release + cargo install --root $PKG/usr + rm $PKG/usr/.crates.toml +}
participants (1)
-
crux@crux.nu