summaryrefslogtreecommitdiff
path: root/repo/cbindgen/cbindgen.xibuild
blob: 23887b0b6f45315108edcc229eb0cfa3e372baa2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

NAME="cbindgen"
DESC="Tool to generate C bindings from Rust code"

MAKEDEPS="cargo"

PKG_VER=0.24.3
SOURCE="https://crates.io/api/v1/crates/cbindgen/$PKG_VER/download"

prepare() {
	cargo fetch --locked
}

build() {
	cargo build --release --frozen
}

package() {
	install -Dm0755 target/release/cbindgen -t "$PKG_DEST"/usr/bin
}