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

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

MAKEDEPS=""
DEPS="gcc "

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

build () {
    cargo build --release --locked --verbose
}

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