cargo-c: update to 0.10.5

This commit is contained in:
tranzystorekk 2024-10-18 17:18:33 +02:00
parent c552997d81
commit 3923fa811c
2 changed files with 9 additions and 33 deletions

View File

@ -1,11 +0,0 @@
--- a/vendor/libgit2-sys/build.rs
+++ b/vendor/libgit2-sys/build.rs
@@ -79,6 +79,8 @@ fn main() {
.define("MATCH_LIMIT", Some("10000000"))
.define("MATCH_LIMIT_RECURSION", Some("MATCH_LIMIT"))
.define("MAX_NAME_SIZE", Some("32"))
+ .define("_LARGE_FILE_SOURCE", Some("1"))
+ .define("_FILE_OFFSET_BITS", Some("64"))
.define("MAX_NAME_COUNT", Some("10000"));
// "no symbols" warning on pcre_string_utils.c is because it is only used
// when when COMPILE_PCRE8 is not defined, which is the default.

View File

@ -1,36 +1,23 @@
# Template file for 'cargo-c'
pkgname=cargo-c
version=0.9.22
revision=2
version=0.10.5
revision=1
build_style=cargo
hostmakedepends="pkg-config zlib-devel"
makedepends="openssl-devel libssh2-devel zlib-devel libcurl-devel"
makedepends="openssl-devel libssh2-devel zlib-devel libcurl-devel libgit2-1.8-devel sqlite-devel"
short_desc="Build and install C-compatible rust libraries"
maintainer="oreo639 <oreo6391@gmail.com>"
license="MIT"
homepage="https://crates.io/crates/cargo-c"
distfiles="https://github.com/lu-zero/cargo-c/archive/v${version}.tar.gz
https://github.com/lu-zero/cargo-c/releases/download/v${version}/Cargo.lock"
checksum="6af542e3d76e4341693b2e9a9f50abf15b04d82c5f9d1b350110cfac7e914e73
0c59e6fa12196cb57733d889ace5acbbe26ec32a6124324d0e6aa0bae2d2a4c3"
skip_extraction="Cargo.lock"
https://github.com/lu-zero/cargo-c/releases/download/v${version}/Cargo.lock>Cargo-${version}.lock"
checksum="3f131a6a647851a617a87daaaf777a9e50817957be0af29806615613e98efc8a
2b5660aabd70f6a12390a19bcdeacc585c418d24aaa6855bd396a1c3a5684320"
skip_extraction="Cargo-${version}.lock"
post_extract() {
local old_lg=b2a5e68b318f28fd7d8f9158bbdab0033f47e1ddd1beb2effe70d9c1c5d1cb31
local new_lg=98ad678aeacd9467f15af1f03bbfa762a8ec9b5b89f9bb61220430d077ff6519
cd ${wrksrc}
cp ${XBPS_SRCDISTDIR}/${pkgname}-${version}/Cargo.lock .
cargo vendor
mkdir -p .cargo
cat <<-EOF >>.cargo/config.toml
[source.crates-io]
replace-with = "vendored-sources"
[source.vendored-sources]
directory = "vendor"
EOF
vsed -i "s/$old_lg/$new_lg/" vendor/libgit2-sys/.cargo-checksum.json
vsrccopy Cargo-${version}.lock .
mv Cargo-${version}.lock Cargo.lock
}
post_install() {