summaryrefslogtreecommitdiff
path: root/cbindgen
diff options
context:
space:
mode:
authorDanny Rawlins <monster.romster@gmail.com>2018-12-26 21:16:30 +1100
committerDanny Rawlins <monster.romster@gmail.com>2018-12-26 21:32:04 +1100
commit191e121efac504acecf64d1e1b3022a030dfbd8e (patch)
treee0b6f8d00a9e8d76f331d30546bc074c282f8c95 /cbindgen
parent3251aa9dfa1b6629a7a0a8518e7366f211697074 (diff)
downloadcontrib-191e121efac504acecf64d1e1b3022a030dfbd8e.tar.gz
contrib-191e121efac504acecf64d1e1b3022a030dfbd8e.tar.xz
cbindgen: picked up port
Diffstat (limited to 'cbindgen')
-rw-r--r--cbindgen/.footprint3
-rw-r--r--cbindgen/.signature5
-rw-r--r--cbindgen/Pkgfile24
3 files changed, 32 insertions, 0 deletions
diff --git a/cbindgen/.footprint b/cbindgen/.footprint
new file mode 100644
index 000000000..913766fb0
--- /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 000000000..db0a27c11
--- /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 000000000..e3eaf8878
--- /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
+}

Generated by cgit