summaryrefslogtreecommitdiff
path: root/repo/cbindgen/cbindgen.xibuild
blob: 8bebc3a05ef8ef7cca7ec12a1323cdf01083c4ff (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.20.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"
}