summaryrefslogtreecommitdiff
path: root/repo/cbindgen/cbindgen.xibuild
diff options
context:
space:
mode:
Diffstat (limited to 'repo/cbindgen/cbindgen.xibuild')
-rw-r--r--repo/cbindgen/cbindgen.xibuild18
1 files changed, 11 insertions, 7 deletions
diff --git a/repo/cbindgen/cbindgen.xibuild b/repo/cbindgen/cbindgen.xibuild
index ae10722..23887b0 100644
--- a/repo/cbindgen/cbindgen.xibuild
+++ b/repo/cbindgen/cbindgen.xibuild
@@ -3,16 +3,20 @@
NAME="cbindgen"
DESC="Tool to generate C bindings from Rust code"
-MAKEDEPS=""
-DEPS="gcc "
+MAKEDEPS="cargo"
-PKG_VER=0.23.0
+PKG_VER=0.24.3
SOURCE="https://crates.io/api/v1/crates/cbindgen/$PKG_VER/download"
-build () {
- cargo build --release --locked --verbose
+prepare() {
+ cargo fetch --locked
}
-package () {
- install -Dm0755 target/release/cbindgen "$PKG_DEST/usr/bin/cbindgen"
+build() {
+ cargo build --release --frozen
}
+
+package() {
+ install -Dm0755 target/release/cbindgen -t "$PKG_DEST"/usr/bin
+}
+