first commit
This commit is contained in:
3
src/cbindgen/.gitignore
vendored
Normal file
3
src/cbindgen/.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
.cache/
|
||||
dist/
|
||||
root/
|
2
src/cbindgen/changes.md
Normal file
2
src/cbindgen/changes.md
Normal file
@ -0,0 +1,2 @@
|
||||
# 0.24.3
|
||||
First version
|
17
src/cbindgen/pkg.sh
Normal file
17
src/cbindgen/pkg.sh
Normal file
@ -0,0 +1,17 @@
|
||||
NAME="cbindgen"
|
||||
DESC="Generate C bindings for Rust code."
|
||||
VERSION="0.24.3"
|
||||
FILES=("https://github.com/eqrion/cbindgen/archive/v$VERSION/cbindgen-$VERSION.tar.gz")
|
||||
HASHES=("6aa2991ca8411f9ebf9961e8b873e884")
|
||||
DEPENDS=()
|
||||
|
||||
PACKAGE() {
|
||||
tar xf $NAME-$VERSION.tar.gz
|
||||
cd $NAME-$VERSION
|
||||
|
||||
cargo build --release
|
||||
mkdir -pv "$ROOTDIR/usr/bin"
|
||||
install -Dm755 target/release/cbindgen "$ROOTDIR/usr/bin/"
|
||||
|
||||
cd .. && rm -r $NAME-$VERSION
|
||||
}
|
Reference in New Issue
Block a user