Update package version to 0.10.18
This commit is contained in:
@@ -1,8 +1,22 @@
|
|||||||
name: cargo-c
|
name: cargo-c
|
||||||
description: Cargo applet to build and install C-ABI compatible libraries
|
description: Cargo applet to build and install C-ABI compatible libraries
|
||||||
version: 0.10.16
|
version: 0.10.18
|
||||||
|
revision: 1
|
||||||
url: https://github.com/lu-zero/cargo-c/
|
url: https://github.com/lu-zero/cargo-c/
|
||||||
license: MIT
|
license: MIT
|
||||||
architecture: any
|
architecture: any
|
||||||
depends: ["rustc","curl","glibc","openssl","zlib"]
|
|
||||||
type: source
|
type: source
|
||||||
|
depends:
|
||||||
|
- rustc
|
||||||
|
- curl
|
||||||
|
- glibc
|
||||||
|
- openssl
|
||||||
|
- zlib
|
||||||
|
downloads:
|
||||||
|
- url: https://github.com/lu-zero/cargo-c/archive/refs/tags/v${BPM_PKG_VERSION}.tar.gz
|
||||||
|
extract_to: ${BPM_SOURCE}
|
||||||
|
extract_strip_components: 1
|
||||||
|
checksum: 0f2b699be7ad5cac05624701065ae521c7f6b8159bdbcb8103445fc2440d1a7e
|
||||||
|
- url: https://github.com/lu-zero/cargo-c/releases/download/v${BPM_PKG_VERSION}/Cargo.lock
|
||||||
|
filepath: ${BPM_SOURCE}/Cargo.lock
|
||||||
|
checksum: 14e438039df865fbd1d4c68bc4ed61a2ee015c12f41bb47b942d4ee316d49d31
|
||||||
|
|||||||
@@ -2,19 +2,9 @@
|
|||||||
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE
|
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE
|
||||||
# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
|
# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
|
||||||
|
|
||||||
DOWNLOAD="https://github.com/lu-zero/cargo-c/archive/refs/tags/v${BPM_PKG_VERSION}.tar.gz"
|
|
||||||
DOWNLOAD_LOCK="https://github.com/lu-zero/cargo-c/releases/download/v${BPM_PKG_VERSION}/Cargo.lock"
|
|
||||||
FILENAME="${DOWNLOAD##*/}"
|
|
||||||
FILENAME_LOCK="${DOWNLOAD_LOCK##*/}"
|
|
||||||
|
|
||||||
# The prepare function is executed in the root of the temp directory
|
# The prepare function is executed in the root of the temp directory
|
||||||
# This function is used for downloading files and putting them into the correct location
|
# This function is used for putting downloaded files to the correct location or applying patches
|
||||||
prepare() {
|
prepare() {
|
||||||
wget "$DOWNLOAD"
|
|
||||||
wget "$DOWNLOAD_LOCK"
|
|
||||||
tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE"
|
|
||||||
mv "$FILENAME_LOCK" -t "$BPM_SOURCE"
|
|
||||||
|
|
||||||
cd "$BPM_SOURCE"
|
cd "$BPM_SOURCE"
|
||||||
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
|
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
|
||||||
}
|
}
|
||||||
@@ -22,7 +12,6 @@ prepare() {
|
|||||||
# The build function is executed in the source directory
|
# The build function is executed in the source directory
|
||||||
# This function is used to compile the source code
|
# This function is used to compile the source code
|
||||||
build() {
|
build() {
|
||||||
#export CARGO_TARGET_DIR="target"
|
|
||||||
cargo build --release --frozen
|
cargo build --release --frozen
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user