diff options
| author | zorz <zorz@krypt.sh> | 2026-04-01 18:48:25 +0300 |
|---|---|---|
| committer | zorz <zorz@krypt.sh> | 2026-04-01 18:48:25 +0300 |
| commit | ce9dc5919cd5ef12f13c06c47eec8d6d6cd0486e (patch) | |
| tree | cd063adb15fb9f360555cf1812c361af2b5590af /cargo-c | |
| parent | 59683981c6945b0e02ac6411b16d625be8a9baae (diff) | |
| download | zorz-ce9dc5919cd5ef12f13c06c47eec8d6d6cd0486e.tar.gz zorz-ce9dc5919cd5ef12f13c06c47eec8d6d6cd0486e.tar.xz | |
obsolete: makedep of librsvg
Diffstat (limited to 'cargo-c')
| -rw-r--r-- | cargo-c/.footprint | 6 | ||||
| -rw-r--r-- | cargo-c/.signature | 6 | ||||
| -rw-r--r-- | cargo-c/MAKEPKG | 47 |
3 files changed, 59 insertions, 0 deletions
diff --git a/cargo-c/.footprint b/cargo-c/.footprint new file mode 100644 index 0000000..d9f7d39 --- /dev/null +++ b/cargo-c/.footprint | |||
| @@ -0,0 +1,6 @@ | |||
| 1 | drwxr-xr-x root/root usr/ | ||
| 2 | drwxr-xr-x root/root usr/bin/ | ||
| 3 | -rwxr-xr-x root/root usr/bin/cargo-capi | ||
| 4 | -rwxr-xr-x root/root usr/bin/cargo-cbuild | ||
| 5 | -rwxr-xr-x root/root usr/bin/cargo-cinstall | ||
| 6 | -rwxr-xr-x root/root usr/bin/cargo-ctest | ||
diff --git a/cargo-c/.signature b/cargo-c/.signature new file mode 100644 index 0000000..1293a48 --- /dev/null +++ b/cargo-c/.signature | |||
| @@ -0,0 +1,6 @@ | |||
| 1 | untrusted comment: verify with zorz.pub | ||
| 2 | RWTZ9IduCSQ/mJdF38yDUSuB5mfqXy7qGRatt5WXTxJp2lnKNq7SoI8GEKnB5Fqm3g5xcNQ7Jd8/ViNK3V4j0wzN8sisdmXrJQo= | ||
| 3 | |||
| 4 | SHA256 (MAKEPKG) = 025bb4f73c88ee19e8be5b643e6665b37e8837c23c199bdfcf5d997a3bcb8e2c | ||
| 5 | SHA256 (.footprint) = 120f05ca57fb0dbc82b26d55fe14f3719e1bf43681a430bb813e7310a9a6a1e0 | ||
| 6 | SHA256 (cargo-c-0.10.21.tar.gz) = 819b62a61e5271924dffd122b7c713e446e5d65f3e630bbe9b90d4d46513d8fa | ||
diff --git a/cargo-c/MAKEPKG b/cargo-c/MAKEPKG new file mode 100644 index 0000000..ee33539 --- /dev/null +++ b/cargo-c/MAKEPKG | |||
| @@ -0,0 +1,47 @@ | |||
| 1 | #!/bin/mkpkg | ||
| 2 | # description: Cargo helper to build and install C-ABI compatible libraries | ||
| 3 | # url: https://github.com/lu-zero/cargo-c | ||
| 4 | |||
| 5 | name=cargo-c | ||
| 6 | version=0.10.21 | ||
| 7 | release=1 | ||
| 8 | depends=(rust) | ||
| 9 | makedepends=(cargo-audit) | ||
| 10 | source=(https://github.com/lu-zero/$name/archive/refs/tags/v$version.tar.gz) | ||
| 11 | renames=($name-$version.tar.gz) | ||
| 12 | sha256sums=( | ||
| 13 | "819b62a61e5271924dffd122b7c713e446e5d65f3e630bbe9b90d4d46513d8fa" | ||
| 14 | ) | ||
| 15 | |||
| 16 | patch() { | ||
| 17 | cd $name-$version | ||
| 18 | cargo vendor ../vendor | ||
| 19 | mkdir -p .cargo | ||
| 20 | printf '%s\n' \ | ||
| 21 | '[source.crates-io]' \ | ||
| 22 | 'replace-with = "vendored-sources"' \ | ||
| 23 | '' \ | ||
| 24 | '[source.vendored-sources]' \ | ||
| 25 | 'directory = "../vendor"' \ | ||
| 26 | > .cargo/config.toml | ||
| 27 | cargo audit | ||
| 28 | } | ||
| 29 | |||
| 30 | build() { | ||
| 31 | export CARGO_HTTP_CAINFO=/etc/ssl/cert.pem | ||
| 32 | export RUSTFLAGS="-C linker=clang -C link-arg=-fuse-ld=lld -C target-feature=-crt-static" | ||
| 33 | cd $name-$version | ||
| 34 | cargo build --release --offline | ||
| 35 | install -Dm755 target/release/cargo-capi $PKG/usr/bin/cargo-capi | ||
| 36 | install -Dm755 target/release/cargo-cbuild $PKG/usr/bin/cargo-cbuild | ||
| 37 | install -Dm755 target/release/cargo-cinstall $PKG/usr/bin/cargo-cinstall | ||
| 38 | install -Dm755 target/release/cargo-ctest $PKG/usr/bin/cargo-ctest | ||
| 39 | } | ||
| 40 | |||
| 41 | signify() { | ||
| 42 | untrusted comment: public key | ||
| 43 | RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3 | ||
| 44 | } | ||
| 45 | |||
| 46 | # vim: filetype=sh | ||
| 47 | |||