From ce9dc5919cd5ef12f13c06c47eec8d6d6cd0486e Mon Sep 17 00:00:00 2001 From: zorz Date: Wed, 1 Apr 2026 18:48:25 +0300 Subject: obsolete: makedep of librsvg --- cargo-c/.footprint | 6 ++++++ cargo-c/.signature | 6 ++++++ cargo-c/MAKEPKG | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 59 insertions(+) create mode 100644 cargo-c/.footprint create mode 100644 cargo-c/.signature create mode 100644 cargo-c/MAKEPKG 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 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +-rwxr-xr-x root/root usr/bin/cargo-capi +-rwxr-xr-x root/root usr/bin/cargo-cbuild +-rwxr-xr-x root/root usr/bin/cargo-cinstall +-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 @@ +untrusted comment: verify with zorz.pub +RWTZ9IduCSQ/mJdF38yDUSuB5mfqXy7qGRatt5WXTxJp2lnKNq7SoI8GEKnB5Fqm3g5xcNQ7Jd8/ViNK3V4j0wzN8sisdmXrJQo= + +SHA256 (MAKEPKG) = 025bb4f73c88ee19e8be5b643e6665b37e8837c23c199bdfcf5d997a3bcb8e2c +SHA256 (.footprint) = 120f05ca57fb0dbc82b26d55fe14f3719e1bf43681a430bb813e7310a9a6a1e0 +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 @@ +#!/bin/mkpkg +# description: Cargo helper to build and install C-ABI compatible libraries +# url: https://github.com/lu-zero/cargo-c + +name=cargo-c +version=0.10.21 +release=1 +depends=(rust) +makedepends=(cargo-audit) +source=(https://github.com/lu-zero/$name/archive/refs/tags/v$version.tar.gz) +renames=($name-$version.tar.gz) +sha256sums=( + "819b62a61e5271924dffd122b7c713e446e5d65f3e630bbe9b90d4d46513d8fa" +) + +patch() { + cd $name-$version + cargo vendor ../vendor + mkdir -p .cargo + printf '%s\n' \ + '[source.crates-io]' \ + 'replace-with = "vendored-sources"' \ + '' \ + '[source.vendored-sources]' \ + 'directory = "../vendor"' \ + > .cargo/config.toml + cargo audit +} + +build() { + export CARGO_HTTP_CAINFO=/etc/ssl/cert.pem + export RUSTFLAGS="-C linker=clang -C link-arg=-fuse-ld=lld -C target-feature=-crt-static" + cd $name-$version + cargo build --release --offline + install -Dm755 target/release/cargo-capi $PKG/usr/bin/cargo-capi + install -Dm755 target/release/cargo-cbuild $PKG/usr/bin/cargo-cbuild + install -Dm755 target/release/cargo-cinstall $PKG/usr/bin/cargo-cinstall + install -Dm755 target/release/cargo-ctest $PKG/usr/bin/cargo-ctest +} + +signify() { + untrusted comment: public key + RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3 +} + +# vim: filetype=sh + -- cgit v1.2.3